Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caller Hiearchy shows lines of each reference in caller, not start li… #429

Open
wants to merge 378 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
378 commits
Select commit Hold shift + click to select a range
df02c29
clangIndex
MaskRay Jul 7, 2018
cc65ea9
Misc changes to clangIndex
MaskRay Jul 8, 2018
eb8acf9
pipeline
MaskRay Jul 8, 2018
ed1b221
Remove submodule doctest
MaskRay Jul 9, 2018
c6553c7
clangIndex
MaskRay Jul 8, 2018
0a30409
cmake: remove -lc++experimental -ldl -lexecinfo
MaskRay Jul 9, 2018
7d1d4b4
$ccls/publishSemanticHighlighting: use pair<int,int> in place of lsRange
MaskRay Jul 9, 2018
7c1ff07
Fix memberHierarchy
MaskRay Jul 9, 2018
c04d062
Add some ObjC kinds
MaskRay Jul 9, 2018
0c50ee7
Cleanup
MaskRay Jul 10, 2018
3737d4c
Support uses from other files and improve references in macro replace…
MaskRay Jul 13, 2018
39d4bbf
Use clangTooling
MaskRay Jul 13, 2018
0780e80
Fix FreeBSD build with -DUSE_SHARED_LLVM=off
MaskRay Jul 14, 2018
d604fc3
Use Sema/CodeCompleteConsumer
MaskRay Jul 14, 2018
4612aa0
$ccls/publishSemanticHighlighting: support both line/character-style …
MaskRay Jul 14, 2018
5dcccea
Use Clang C++ for completion and diagnostics
MaskRay Jul 14, 2018
df72a9e
Simplify
MaskRay Jul 15, 2018
eea1b92
Enable clangDriver in project.cc
MaskRay Jul 15, 2018
dd05ad9
Diagnostics
MaskRay Jul 15, 2018
814f054
Misc improvement to indexer
MaskRay Jul 15, 2018
8912b00
Support BindingDecl and VarTemplate{,Partial}SpecializationDecl
MaskRay Jul 16, 2018
344f00f
CrashRecoveryContext
MaskRay Jul 16, 2018
73ac788
Remove libclang
MaskRay Jul 16, 2018
af54645
Fix spell for clang < 7
MaskRay Jul 16, 2018
0732d37
Better bases/derived and initializer
MaskRay Jul 17, 2018
46d397f
--init
MaskRay Jul 18, 2018
19fa911
links
MaskRay Jul 19, 2018
27d641b
Add Query*::file_id to allow textDocument/hover on declarations
MaskRay Jul 20, 2018
e67ea3a
Use ContainerDC for extent, index callees, set StaticMethod
MaskRay Jul 21, 2018
8b4a8d2
Fix Twine; index TypedefNameDecl to specialization; anonymous RecordD…
MaskRay Jul 23, 2018
ff102c9
Fix preload completion session.
scturtle Jul 25, 2018
03aa024
Misc.
scturtle Jul 25, 2018
122eda1
Improve comment and outline
MaskRay Jul 25, 2018
b95b475
Fix diagnostics on MacOS and duplicated bases.
scturtle Jul 27, 2018
c710471
Misc
MaskRay Jul 27, 2018
0bb311a
Add textDocument/codeAction for clang FixIt
MaskRay Jul 29, 2018
b4aa070
cmake: for -DSYSTEM_CLANG=off, 6.0.0 -> 6.0.1
MaskRay Jul 29, 2018
924fedb
Uniquify textDocument/references
MaskRay Jul 31, 2018
b5c2a48
rapidjson url (#43)
damon-kwok Aug 3, 2018
3931951
Validate RecordDecl
MaskRay Aug 3, 2018
b9e1c2e
Add flat to $ccls/inheritanceHierarchy
MaskRay Aug 4, 2018
344ade0
Fix compile on Windows + MSYS2-MinGW64 (#46)
Riatre Aug 6, 2018
8cbb317
clang-format
MaskRay Aug 9, 2018
06aa252
Fix typo error (#49)
inengch Aug 13, 2018
2f5fcad
Remove CompileCommandsEntry and reduce clangDriver invocations
MaskRay Aug 18, 2018
431eef2
textDocument/hover: prefer definitions in the same file
MaskRay Aug 19, 2018
66b0279
correctly grabbing the ownership of index files. (#54)
amosbird Aug 20, 2018
f3490a3
Add license notice
MaskRay Aug 21, 2018
ec2b893
Fix VarDef::is_local; default cacheDirectory to ".ccls-cache"
MaskRay Aug 23, 2018
48c92c0
Add LLVM_ENABLE_RTTI (default: OFF) to allow linking against Arch Lin…
MaskRay Aug 23, 2018
caddc18
Uniquify $ccls/inheritanceHierarchy and add flat to $ccls/memberHiera…
MaskRay Aug 24, 2018
bd3e067
SkipFunctionBodiesScope; improve fuzzy
MaskRay Aug 27, 2018
f808dd8
Use StoreInMemory Preamble for CodeComplete
MaskRay Aug 28, 2018
87c5491
New diagnostics
MaskRay Aug 29, 2018
74790e2
fix clang_tu.h && clang_complete.cc (#61)
FirstLoveLife Aug 29, 2018
1ae97c6
detailed_name: "{\n}" -> "{}" ; completion
MaskRay Aug 30, 2018
5cc3006
Filter deps with `index.blacklist`. (#64)
scturtle Aug 30, 2018
407c7cc
Remove ASTUnit from indexer and clean up
MaskRay Aug 30, 2018
11e92d5
README
MaskRay Sep 1, 2018
145630b
Fix unaligned load/store; add index.multiVersion prototype, rename in…
MaskRay Sep 2, 2018
a33f4df
index.multiVersion: int
MaskRay Sep 3, 2018
aebf2df
Add index.multiVersion{Black,White}list
MaskRay Sep 3, 2018
e92378d
Add all: boolean to textDocument/documentSymbol
MaskRay Sep 3, 2018
0a51424
Add $ccls/navigate and improve textDocument/definition
MaskRay Sep 3, 2018
56da577
Add clang.excludeArgs and rename diagnostics.onType to onChange
MaskRay Sep 4, 2018
b77fba6
Improve hover and documentSymbol
MaskRay Sep 6, 2018
8b3ebf2
Remove $ccls/base and clean up; deduplicate codeLens
MaskRay Sep 7, 2018
e20a8e7
Add DeclUse as element type of declarations
MaskRay Sep 8, 2018
82d31a2
Implement index.onChange: true; enable spell checking for diagnostics
MaskRay Sep 8, 2018
58191fd
Support empty cacheDirectory and fix cache load
MaskRay Sep 8, 2018
da982a6
Reuse preamble (built by "comp-preload") in indexer
MaskRay Sep 8, 2018
92ee7f3
Add diagnostics.onSave
MaskRay Sep 8, 2018
c202dd3
Make CXXConversion references wider; use getTypedefNameForAnonDecl; i…
MaskRay Sep 9, 2018
a7c1633
Misc
MaskRay Sep 10, 2018
c9e6b31
Revamp completion and signatureHelp, set completion.detailedLabel: tr…
MaskRay Sep 11, 2018
a45686a
diagnostics; use custom DenseMapInfo
MaskRay Sep 11, 2018
a607dce
Normalize paths on Windows
Riatre Sep 11, 2018
c7a6c5c
Make $ccls/reload reset DB and reload cached index files
MaskRay Sep 12, 2018
e2f29d7
pipeline improvement for files not having a project entry (e.g. .h)
MaskRay Sep 12, 2018
6bca153
Make $ccls/inheritanceHierarchy and textDocument/typeDefinition find …
MaskRay Sep 12, 2018
1969731
textDocument/documentSymbol
MaskRay Sep 13, 2018
a174105
Better diagnostics
MaskRay Sep 13, 2018
70deeca
Rename hierarchies to $ccls/{call,inheritance,member}
MaskRay Sep 13, 2018
56c6ec4
Skip informative scope foo::
MaskRay Sep 16, 2018
34c1ebc
Remove [spell.start, spell.end) -> [spell.start, extent.end) hack
MaskRay Sep 16, 2018
a18977b
Add clang.pathMappings to reuse cache files with differect source paths
MaskRay Sep 16, 2018
14b73f0
Add hierarchicalDocumentSymbolSupport
MaskRay Sep 16, 2018
763106c
Simplify pipeline and fix race
MaskRay Sep 18, 2018
525b6da
intern strings in dependencies and IndexInclude::resolved_path
MaskRay Sep 19, 2018
08645d6
intern args
MaskRay Sep 19, 2018
f515b4b
Improve VarDef::type for textDocument/typeDefinition
MaskRay Sep 19, 2018
f9bd84a
Clean up FileConsumer and improve pipeline
MaskRay Sep 20, 2018
4175629
Simplify semantic highlighting
MaskRay Sep 21, 2018
4d76108
Delete file_consumer.*
MaskRay Sep 21, 2018
1a51916
Remove chunks with CK_Information kind from insertText. (#78)
Riatre Sep 22, 2018
28d3332
Publish diagnostics of inferred files and change diagnostics.{onChang…
MaskRay Sep 22, 2018
6ea3995
Fix spurious "Failed to index" errors
MaskRay Sep 23, 2018
7eb58bb
Misc
MaskRay Sep 23, 2018
22daed7
Add kind to $ccls/member and iterate all QueryType::def
MaskRay Sep 23, 2018
e320ce4
Include macros in completion result
Riatre Sep 22, 2018
71e9835
documentSymbol: ignore TypeParameter
MaskRay Sep 23, 2018
32f7d14
Allow force disabling snippet via client.snippetSupport
Riatre Sep 13, 2018
854225b
Misc
MaskRay Sep 23, 2018
8f40c0c
Remove clang_utils.*
MaskRay Sep 23, 2018
ce68028
Add GetAdjustedDecl to adjust Decl's that are missed by clangIndex
MaskRay Sep 23, 2018
eb644bb
Add index.initial{Blacklist,Whitelist}
MaskRay Sep 24, 2018
0eb9428
Add index.trackDependency and improve pipeline
MaskRay Sep 24, 2018
41fcc02
Simplify semantic highlighting; improve hover of auto &&
MaskRay Sep 24, 2018
d6ad864
Update threaded_queue.h (#82)
amosbird Sep 27, 2018
05109b6
Merge textDocument_did{Change,Close,Open,Save}.cc
MaskRay Sep 28, 2018
a127ca9
Support textDocument/{formatting,onTypeFormatting,rangeFormatting}
MaskRay Sep 28, 2018
d487120
Construct SourceManager with UserFilesAreVolatile
MaskRay Sep 28, 2018
da70452
Revamp codeLens & codeAction
MaskRay Sep 29, 2018
79373ba
Rename some initialization options
MaskRay Sep 30, 2018
84984c6
Use non-inferred entries and build preamble for .h; index on didOpen …
MaskRay Oct 1, 2018
f2227cb
Clean
MaskRay Oct 1, 2018
da07cb2
Add $ccls/info
MaskRay Oct 1, 2018
8d49b44
regard conversion as method instead of constructor
FirstLoveLife Oct 2, 2018
29f05d9
Use pthread if defined(__unix__) || defined(__APPLE__)
MaskRay Oct 2, 2018
fc8a60c
Add PreambleStatCache
MaskRay Oct 3, 2018
c7ee3d8
For $ccls/member, use unadjusted RecordDecl (if there is forward decl…
MaskRay Oct 3, 2018
38feb8d
Add completion.maxNum: 100
MaskRay Oct 3, 2018
6ec032c
Redesign SymbolRef, Ref, Use
MaskRay Oct 4, 2018
8c21701
Use DeclRef spell to represent Use spell + Use extent
MaskRay Oct 4, 2018
10c1c28
Clean and update tests after Index* refactoring
MaskRay Oct 5, 2018
de9c77e
Improve completion
MaskRay Oct 6, 2018
5a1ed4c
Support workspace folders
MaskRay Oct 8, 2018
ac2d921
Fix additionalTextEdits -> textEdit hack for VS Code (#89)
Riatre Oct 9, 2018
c5ae521
Namespace: improve indexer and don't trace bases in $ccls/member
MaskRay Oct 10, 2018
51081c3
Add namespace alias clang::vfs = llvm::vfs to adapt D52783
MaskRay Oct 10, 2018
f5816e3
Fix hierarchical document symbol
Riatre Oct 10, 2018
61b3613
-DSYSTEM_CLANG=off: 6.0.1 -> 7.0.0
MaskRay Oct 12, 2018
4743124
Adapt trunk change and write comments to PCH
MaskRay Oct 12, 2018
79352b4
Misc changes to project
MaskRay Oct 14, 2018
fc1db06
Add pipeline::{Notify,Reply,ReplyError} and simplify message handling
MaskRay Jan 9, 2019
cb7ed94
Add ExtentRef; merge symbol2refcnt and outline2refcnt
MaskRay Oct 15, 2018
87ea7d2
Simplify
MaskRay Oct 15, 2018
119a055
Improve extent of definition/declaration; uniquify typeDefinition
MaskRay Oct 19, 2018
ce1c7ec
Improve DeducedType
MaskRay Oct 19, 2018
283d887
Add command line option -index=root to index without starting languag…
MaskRay Oct 23, 2018
32a658a
Fix textDocument/implementation
MaskRay Oct 23, 2018
16c2e06
Deprioritize completion items with additionTextEdits
MaskRay Oct 23, 2018
c0c7cfe
Fix broken link in README.md (#101)
dfrib Oct 24, 2018
1d67a40
Implement textDocument/foldingRange
MaskRay Oct 24, 2018
6e19a59
Implement textDocument/documentLink
MaskRay Oct 25, 2018
ea1271a
Refactor message handler and namespace ccls
MaskRay Oct 28, 2018
df20969
*.h -> *.hh
MaskRay Oct 29, 2018
5599ddd
Simplify and better compatibility with encodings retaining the featur…
MaskRay Oct 29, 2018
26d76b7
Report InvalidParams for serialization error
MaskRay Oct 31, 2018
90a94cb
textDocument/references workspace/symbol: add folders
MaskRay Oct 30, 2018
334557e
Fix EnumConstantDecl's kind & EnumDecl's vars
MaskRay Nov 2, 2018
42b6b7b
project.cc: deduplicate more cases
MaskRay Nov 2, 2018
18e5d5c
Simplify and work around vscode _sortTextLow
MaskRay Nov 3, 2018
ac09b08
Misc
MaskRay Nov 4, 2018
11ba6b6
Remove `ls` prefix from many LSP interfaces
MaskRay Nov 3, 2018
e0e00cb
Reduce MAKE_REFLECT_STRUCT in lsp.hh
MaskRay Nov 4, 2018
58c701d
Improve semantic highlight in templates
MaskRay Nov 8, 2018
94d2b58
Work around relative --sysroot=
MaskRay Nov 8, 2018
eeeb03c
If clang >= 8, delete search path detection and use Sema::CodeComplet…
MaskRay Nov 9, 2018
5736dd0
Fix some MSVC 2017 errors
MaskRay Nov 11, 2018
a24fe5a
hierarchicalDocumentSymbol: display member function declarations
MaskRay Nov 11, 2018
63a510a
Use SM.isWrittenInMainFile; suppress -Werror in preamble
MaskRay Nov 10, 2018
77bec58
Fix VS2017 build issues and add Appveyor CI script (#118)
DsoTsin Nov 13, 2018
6767b9b
Add Apache LICENSE file (#121)
adzenith Nov 13, 2018
06dff21
README: add client feature table
MaskRay Nov 16, 2018
b31a1c6
hierarchicalDocumentSymbol: support SymbolKind::Function declaration …
MaskRay Nov 16, 2018
8c73bbc
Use clang::isIdentifierBody and clean up utils/working_files
MaskRay Nov 17, 2018
afa654f
.ccls: add %objective-c %objective-cpp
MaskRay Nov 20, 2018
f6fca76
indexer: handle DecltypeType and empty main file; diag: -Wno-unused-f…
MaskRay Nov 23, 2018
58e9963
Refactor ReplyOnce; error if InitializeParams.rootUri is null
MaskRay Nov 23, 2018
3bcb5f2
serializer: make visitor/vis value/v consistent
MaskRay Nov 23, 2018
7a363d2
completion: delete insertText; don't set filterText if it is the same…
MaskRay Nov 23, 2018
eacbc1e
Make DocumentLink::range narrower
MaskRay Nov 24, 2018
9ffbf3c
codeAction: use codeActionProvider: CodeActionOptions and respect Cod…
MaskRay Nov 25, 2018
0606b95
constexpr std::string_view -> const std::string_view
MaskRay Nov 26, 2018
e6510f7
Make EmptyParam empty & rewrite LruCache
MaskRay Nov 27, 2018
5a723b4
Refactor Matcher to use pimpl and merge match.hh into utils.hh
MaskRay Nov 27, 2018
5a5165f
Merge query.hh and query_util.hh
MaskRay Nov 27, 2018
72ee893
Merge maybe.hh into utils.hh
MaskRay Nov 27, 2018
a37782d
Fix ComputeGuessScore and delete dead code
MaskRay Nov 27, 2018
e5b4a40
completion: use Text for Macro{Instantiation,Definition}
MaskRay Nov 30, 2018
ab48663
Refactor WorkingFiles and CompletionManager
MaskRay Dec 1, 2018
872d7c5
Add ReplyOnce::NotReady and error if didOpen is not seen
MaskRay Dec 2, 2018
04e8054
Refactor serializer
MaskRay Dec 2, 2018
d43b994
query: fix UpdateUses when a new entity is seen; simplify {DeclRef,Us…
MaskRay Dec 3, 2018
259b9fe
Spin IncludeComplete's destructor until scanning completes (#147)
LeszekSwirski Dec 4, 2018
6945a56
Support multiple -init=
MaskRay Dec 9, 2018
df7221a
Rendezvous after receiving "exit" notification (#159)
MaskRay Dec 14, 2018
37a9ad3
cmake_minimum_required 3.8; clean up
MaskRay Dec 14, 2018
fc38442
Support textDocument/declaration & LocationLink
MaskRay Dec 17, 2018
e0a6db8
ParameterInformation: use label: [number, number]
MaskRay Dec 17, 2018
18e4be6
Add `strict` to FuzzyMatcher::Match
MaskRay Dec 20, 2018
8ca0978
Make -v=1 work and log cflags for SemaManager session and Indexer
MaskRay Dec 22, 2018
573bfc2
Extend .ccls
MaskRay Dec 21, 2018
f2df430
completion: ignore CXXDeductionGuide
MaskRay Dec 23, 2018
828c21c
Make cacheDirectory related to project root; delete Timer
MaskRay Dec 23, 2018
cbd36ae
Handle file deletion and register workspace/didChangeWatchedFiles
MaskRay Dec 21, 2018
e8cacf1
Adjust FrontendOpts.Inputs[0] for inferred files
MaskRay Dec 24, 2018
9a529bd
Delay requests if the document has not not indexed (#176)
MaskRay Dec 25, 2018
7b3aca2
textDocument/didOpen: index related files when a header is opened
MaskRay Dec 28, 2018
87d7c40
Update wiki link
MaskRay Jan 4, 2019
d6329ea
completion: if preamble size changes, rebuild it
MaskRay Jan 13, 2019
26fb0a9
Add -log-file=stderr and make it default
MaskRay Jan 21, 2019
0dbf6c8
Drop support for clang 6
MaskRay Jan 21, 2019
b2fcec4
Implement initialization option compilationDatabaseCommand on Windows
MaskRay Jan 21, 2019
9bc7629
cmake: delete SYSTEM_CLANG and auto-download mechanism
MaskRay Jan 22, 2019
d4de474
Fix completion result sorting in VSCode (#210)
Riatre Jan 30, 2019
f1efcb8
Log {Request,Notification}Message, and timestamp change due to depend…
MaskRay Jan 29, 2019
e4ba51a
textDocument/signatureHelp: enable documentation
Riatre Oct 13, 2018
233ed4f
Fix is_local for vars with non-auto storage period
Riatre Oct 15, 2018
8724985
Compute CompletionItemKind from Declaration instead of CursorKind
MaskRay Feb 2, 2019
6185d69
GetFallback: append clang.extraArgs
MaskRay Feb 10, 2019
3f6ece0
Add initialization option `capabilities.*` and index.maxInitializerLines
MaskRay Feb 10, 2019
ea774da
indexer: change Pos computation from byte offset to UTF-8 encoded cod…
MaskRay Feb 16, 2019
3a252fc
Use DiagnosticRelatedInformation if client supports publishDiagnostic…
LeszekSwirski Feb 21, 2019
05d1fbf
Add cache.{hierarchicalPath,retainInMemory}
MaskRay Feb 21, 2019
048f1dc
indexer: index TemplateTypeParmDecl and ParmVarDecl in declarations f…
MaskRay Feb 22, 2019
43774f2
Make hover more detailed (e.g. include inheritance info)
MaskRay Feb 22, 2019
c4ab725
Change Pos::line from int16_t to uint16_t
MaskRay Feb 23, 2019
05658ef
working_files: normalize \r\n and \n to \n
MaskRay Mar 2, 2019
887535b
Add .github/ISSUE_TEMPLATE
MaskRay Mar 2, 2019
401f057
textDocument/rename: mitigate edits in the same place and edits in ma…
MaskRay Mar 2, 2019
cff00a8
stdin: synthesize an "exit" NotificationMessage in abnormal termination
MaskRay Mar 4, 2019
7e752c1
Make clang.excludeArgs accept glob patterns
MaskRay Mar 5, 2019
ba68f49
Misc
MaskRay Mar 3, 2019
e73f579
cmake: add option to use system rapidjson if exists
MaskRay Mar 9, 2019
b8e0fe9
Add excludeRole to documentSymbol and override declaration's range/se…
MaskRay Mar 9, 2019
977e14c
cmake: use {LLVM,Clang}Config.cmake
MaskRay Mar 10, 2019
4e10504
If the workspace folder is a symlink, convert paths relative to it (#…
MaskRay Mar 10, 2019
a0e7625
Add initialization option index.name.suppressUnwrittenScope (default:…
MaskRay Mar 10, 2019
4276c2b
Change containers of Query*::Def fields from std::vector to ccls::Vec
MaskRay Mar 15, 2019
f3cfdb2
clang.pathMappings: use `>` instead of `:` as the separator
MaskRay Mar 23, 2019
2c11b0d
Enhance the output of --version with Git describe results. (#342)
madscientist Mar 24, 2019
0846c12
Add initialization option index.initialNoLinkage: false
MaskRay Mar 25, 2019
a41b976
Adapt clang rC357037: removal of setVirtualFileSystem
MaskRay Mar 27, 2019
aded3fa
Add error checking of object deserialization; ignore non-object initi…
MaskRay Mar 29, 2019
b69f62c
Set RetainRemappedFileBuffers to true
MaskRay Mar 29, 2019
9993062
Set RetainCommentsFromSystemHeaders to true
MaskRay Apr 12, 2019
2e6aed4
Set declarationProvider
MaskRay Apr 17, 2019
b2f3278
Adapt clang rC358696: removal of OutputIsBinary
MaskRay Apr 19, 2019
9e884fc
Append '/' before populating folder.dot_ccls
Riatre Apr 28, 2019
16bd93b
JsonWriter: write "null" if VersionedTextDocumentIdentifier.version i…
MaskRay Apr 30, 2019
6624108
Refactor FindEntry and use best-fit .ccls
MaskRay Apr 29, 2019
b059ea3
Adapt llvm rL360179: Option may have multiple OptionCategory's
MaskRay May 8, 2019
d3808de
Set Diag::concerned if any of its Notes is concerned
MaskRay May 12, 2019
f54fac0
utils.hh: work around MSVC STL bug
MaskRay Jun 18, 2019
9f25474
threaded_queue.hh: fix -Wpessimizing-move (#409)
torokati44 Jun 18, 2019
cf997dc
Adapt rL364464: clang::FrontendAction::Execute returns llvm::Error in…
MaskRay Jun 27, 2019
cc7e0dd
pipeline: report changed arg
MaskRay Jun 27, 2019
787c06e
Caller Hiearchy shows lines of each reference in caller, not start li…
Deokkoo Jun 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
55 changes: 14 additions & 41 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,22 @@
version: "{build}"
image: Visual Studio 2017
platform: x64

clone_folder: C:\projects\cquery
os: Visual Studio 2017

install:
- git submodule update --init

environment:
CLICOLOR_FORCE: 1
matrix:
- MSYSTEM: MINGW64
- MSYSTEM: MSVC
platform:
- x64

matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
allow_failures:
- platform: x64
build:
parallel: true # enable MSBuild parallel builds
verbosity: minimal

install:
- if not exist llvm.tar.xz appveyor DownloadFile "https://ziglang.org/deps/llvm+clang-7.0.0-win64-msvc-release.tar.xz" -FileName llvm.tar.xz
- 7z e -txz llvm.tar.xz
- 7z x llvm.tar
- git submodule update --init --recursive
build_script:
- ps: |
If ($Env:MSYSTEM -Eq "MSVC") {
$dir = "cquery-${env:appveyor_build_version}-win64"
cd C:\projects\cquery
python waf configure --msvc_version="msvc 15.0"
python waf build
mkdir "${dir}\build\release\bin" -ea 0
mkdir "${dir}\build\release\lib\LLVM-6.0.0-win64\lib\clang\6.0.0\"
copy "build\release\bin\*" "${dir}\build\release\bin"
copy -recurse "build\LLVM-6.0.0-win64\lib\clang\6.0.0\include" "${dir}\build\release\lib\LLVM-6.0.0-win64\lib\clang\6.0.0\"
7z a -tzip "C:\projects\cquery\${dir}.zip" "${dir}"
} Else {
C:\msys64\usr\bin\bash -lc @'
pacman -S --needed --noconfirm mingw-w64-x86_64-clang python
cd /c/projects/cquery
CXXFLAGS=-Wall /usr/bin/python waf configure build --llvm-config llvm-config 2>&1
'@
}
- set PATH=%PATH%;C:\msys64\%MSYSTEM%\bin
- build\release\bin\cquery --ci --log-all-to-stderr --test-unit
- IF "%MSYSTEM%"=="MSVC" build\release\bin\cquery --ci --log-all-to-stderr --test-index
- cmake -G"Visual Studio 15 2017 Win64" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=C:\projects\ccls\llvm+clang-7.0.0-win64-msvc-release
- cmake --build build --target ccls --config Release

artifacts:
- path: 'cquery-*.zip'

cache:
- C:\projects\cquery\build\LLVM-6.0.0-win64.exe
- C:\projects\cquery\build\LLVM-6.0.0-win64\
- path: build\Release
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BasedOnStyle: Chromium
BasedOnStyle: LLVM
6 changes: 0 additions & 6 deletions .clang_complete

This file was deleted.

7 changes: 0 additions & 7 deletions .gitattributes

This file was deleted.

36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Here are some things you should try before filing a bug report:

+ For client issues related to [emacs-ccls](https://github.com/MaskRay/emacs-ccls) or [vscode-ccls](https://github.com/MaskRay/vscode-ccls), report in their own repository.
+ For build problems, check https://github.com/MaskRay/ccls/wiki/Build
+ Check https://github.com/MaskRay/ccls/wiki/Debugging
+ Check [the FAQ](https://github.com/MaskRay/ccls/wiki/FAQ) to see if your issue is mentioned.

If none of those help, remove this section and fill out the four sections in the template below.

---

### Observed behavior

Describe what happened. Any aids you can include (that you think could be relevant) are a tremendous help.

* `compile_commands.json` or `.ccls` ([wiki/Project-Setup](https://github.com/MaskRay/ccls/wiki/Project-Setup))
* Reduce to A minimal set of `.c` `.cc` `.h` `.hh` files that can still demonstrate the issue.
* Consider a screencast gif.

### Expected behavior

Describe what you expected to happen.

### Steps to reproduce

1. Select these example steps,
2. Delete them,
3. And replace them with precise steps to reproduce your issue.

### System information

* ccls version (`git describe --tags --long`):
* clang version:
* OS:
* Editor:
* Language client (and version):
30 changes: 5 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
.cquery_cached_index
.DS_Store
.lock-waf*
.vs
.vscode/
.vscode/.ropeproject
.waf*
*.cquery
*.sln
*.swp
*.vcxproj
*.vcxproj.filters
*.vcxproj.user
**/*.pyc
.*
build
cquery_diagnostics.log
cquery_log.txt
Debug
e2e_cache
foo
libcxx
vscode-extension.vsix
waf-*
waf2*
waf3*
x64
debug
release
/compile_commands.json
!.github/
14 changes: 1 addition & 13 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
[submodule "third_party/rapidjson"]
path = third_party/rapidjson
url = https://github.com/miloyip/rapidjson
[submodule "third_party/doctest"]
path = third_party/doctest
url = https://github.com/onqtam/doctest
[submodule "third_party/sparsepp"]
path = third_party/sparsepp
url = https://github.com/greg7mdp/sparsepp
[submodule "third_party/loguru"]
path = third_party/loguru
url = https://github.com/emilk/loguru
[submodule "third_party/msgpack-c"]
path = third_party/msgpack-c
url = https://github.com/msgpack/msgpack-c
url = https://github.com/Tencent/rapidjson
2 changes: 0 additions & 2 deletions .pep8

This file was deleted.

166 changes: 0 additions & 166 deletions .travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .ycm_extra_conf.py

This file was deleted.

Loading