Fangrui Song
4815b35ff9
Update submodules
2018-02-07 08:56:08 -08:00
Chao Shen
8bee5c6ccf
Disable limiting completion result.
...
Because vscode cache the include completion results.
But for emacs, the json is too large to load.
TODO Make some fields optional.
2018-02-08 00:28:35 +08:00
scturtle
9986ae5a42
Comment the macOS related hack in before_deploy.sh.
2018-02-07 16:41:59 +08:00
scturtle
2e6d596a5a
Speedup sorting and limit number of completion results.
2018-02-07 16:15:29 +08:00
Fangrui Song
e76a336f19
Remove --debug in favor of LIBCLANG_DISABLE_CRASH_RECOVERY=1
...
ci/before_deploy.sh: Use the latest libclang.so
2018-02-07 00:00:04 -08:00
scturtle
ad5ddb51c4
before_deploy.sh maxOS support
2018-02-07 15:48:09 +08:00
Jacob Dufault
67bac3a196
Make all travis bots required
2018-02-06 23:22:00 -08:00
Jacob Dufault
d5f5b6b132
Update .appveyor.yml
2018-02-06 23:11:51 -08:00
Jacob Dufault
f54333f3ff
Update .appveyor.yml
2018-02-06 23:10:24 -08:00
Jacob Dufault
b94d235827
Mark appveyor as optional
2018-02-06 23:09:30 -08:00
Fangrui Song
9e730aacd4
Make before_deploy.sh work on FreeBSD
2018-02-06 22:46:05 -08:00
Fangrui Song
e440a7c52f
Convert some copy constructors to move constructors in query.cc
2018-02-06 21:45:58 -08:00
Fangrui Song
55c7519e93
Move ImportOrUpdate and header cleanup
2018-02-06 21:27:07 -08:00
Jacob Dufault
e9f45dd601
Revert partial of .appveyor.yml change
2018-02-06 21:20:01 -08:00
Jacob Dufault
0405c3a41a
Windows build fixes when symlink is not available.
2018-02-06 21:14:34 -08:00
Fangrui Song
0016d214c3
Convert copy constructor to move constructors piecemeal
...
If I replace all the important constructors used in query.cc, there will be a weird issue that strings following "Applying index update for " are empty.
2018-02-06 20:54:17 -08:00
Jacob Dufault
0cfb5391d1
Add --record in favor of --log-stdin-stdout-to-stderr.
...
This should be more useful and can hopefully be adapted to writing tests.
2018-02-06 20:27:35 -08:00
Fangrui Song
4916c61182
Add ci/before_deploy.sh ( #407 )
...
This does not work for Mac OS X.
2018-02-06 19:05:37 -08:00
Peter Elmers
47a8f20b20
Match directory before looking at included files.
2018-02-06 15:05:30 -08:00
Jan Niklas Hasse
4c32c2bf77
Update loguru submodule ( #424 )
2018-02-06 08:40:50 -08:00
Chao Shen
1e3815db2d
Fix include completion with filterText.
...
Fix #423
2018-02-06 16:14:05 +08:00
Chao Shen
2a9e0b4575
Try to fix travis.
2018-02-06 11:17:55 +08:00
Chao Shen
2073b36392
Fix compilation.
2018-02-05 18:01:56 -08:00
Daan De Meyer
2117d03aba
Fix wrong order of arguments to shutil.copy in wscript
2018-02-05 11:08:05 -08:00
Daan De Meyer
a3c374d368
Fix wscript not being able to create symlinks on Windows 10 with Developer Mode enabled when Python 3 is used.
2018-02-05 11:08:05 -08:00
Fangrui Song
1a82f1f113
We may should represent Query{Func,Type,Var} as a bag of definitions and references
2018-02-05 10:16:43 -08:00
Fangrui Song
cd96cb9570
threaded_queue: queue -> deque
...
IndexMergeIndexUpdates: use TryPopBack() and see
2018-02-04 22:15:48 -08:00
Fangrui Song
3839d1e5ab
Decouple QueryDb_ImportMain
2018-02-04 21:22:21 -08:00
Fangrui Song
a8fb2264a9
Reflect IndexFuncRef
2018-02-04 17:49:00 -08:00
Chao Shen
093dbac30c
Fix compilation.
2018-02-05 09:34:39 +08:00
Fangrui Song
217d238c78
Use clang_getCursorPrettyPrinted if CINDEX_VERSION >= 47
...
Closes #366
2018-02-04 15:23:23 -08:00
Fangrui Song
1349cbfde3
Simplify EachWithGen
2018-02-04 13:43:29 -08:00
Fangrui Song
2c787fe1fe
[waf] Use str for Python 2
2018-02-04 11:01:02 -08:00
Fangrui Song
d573a68130
Simplify operator==
2018-02-04 10:09:58 -08:00
Guillaume Papin
65d7edd9b9
refactor CompareLsCompletionItem ( #412 )
...
Since not everything is a reference,
std::make_tuple() seems more appropriate than std::tie().
For heavy types, std::cref() can be used to preserve the reference.
2018-02-04 09:31:23 -08:00
Guillaume Papin
24702a25b0
add detailedLabel completion style
...
Some completion UI, such as Emacs' completion-at-point and company-lsp,
display completion item label and detail side by side.
This does not look right, when you see things like:
"foo" "int foo()"
"bar" "void bar(int i = 0)"
When this option is enabled, the completion item label is very detailed,
it shows the full signature of the candidate.
The detail just contains the completion item parent context.
Also, in this mode, functions with default arguments,
generates one more item per default argument
so that the right function call can be selected.
That is, you get something like:
"int foo()" "Foo"
"void bar()" "Foo"
"void bar(int i = 0)" "Foo"
Be wary, this is quickly quite verbose,
items can end up truncated by the UIs.
2018-02-03 20:56:14 -08:00
Fangrui Song
7a1464cadb
Fix #410
2018-02-03 20:37:39 -08:00
Fangrui Song
985dec101d
Generation
2018-02-03 19:51:30 -08:00
Fangrui Song
0a721ff247
Simplify query.h
2018-02-03 18:16:30 -08:00
scturtle
15dd552610
Complex include completion.
2018-02-04 09:45:58 +08:00
Chao Shen
e16753d261
Improve completion.
2018-02-04 09:45:58 +08:00
Fangrui Song
e5128d3db9
Wrap Query* references with WithGen
2018-02-03 17:44:20 -08:00
Fangrui Song
3d6d000297
Add Generation gen;
to Query{Func,Type,Var} and corresponding ToQueryLocation
2018-02-03 14:52:26 -08:00
Riatre Foo
54c587a700
Look for .cquery in any directory above the source file in the hierarchy. ( #409 )
...
* Look for .cquery in any directory above the source file in the hierarchy.
Currently cquery only reads compiler arguments (.cquery) from project
root. Under some circumstances (e.g. remote compiling), generating a
compilation database with correct path in it is non-trivial, and
allowing per directory compile arguments usually helps.
* unused var buf
2018-02-03 13:16:38 -08:00
Fangrui Song
6933870962
Change symbol id from size_t to RawId (uint32_t currently)
2018-02-03 10:35:17 -08:00
Fangrui Song
f266cb7b2a
[waf] install
2018-02-02 12:47:33 -08:00
Fangrui Song
880546b333
[waf] Simplify
2018-02-02 12:33:18 -08:00
Riatre Foo
b145243a64
Fix #393 again. ( #402 )
...
28cd33e actually changed the behaviour of GetFilesInFolderHelper.
2018-02-02 10:51:14 -08:00
Fangrui Song
27c4222ef1
[waf] Deprecate --use-system-clang and simplify
2018-02-02 09:46:14 -08:00
Fangrui Song
12e41c609e
Fix #393
2018-02-01 23:35:34 -08:00