Commit Graph

1594 Commits

Author SHA1 Message Date
Fangrui Song
c28426bbb4 Remove QueryLocation and clean up 2018-02-09 19:13:50 -08:00
Fangrui Song
50cf05763b Query* structs: QueryLocation -> Reference 2018-02-09 17:50:47 -08:00
Fangrui Song
aa125e34f3 Work around SIGSEGV and simplify SymbolIdx 2018-02-09 17:05:17 -08:00
Fangrui Song
fd803ffb84 -rdynamic so that dladdr() gives symbol names in main executable 2018-02-09 15:41:52 -08:00
Fangrui Song
95515643d8 Remove ToSymbol 2018-02-09 15:39:55 -08:00
Fangrui Song
c4bd7ef44b Rename Reference members 2018-02-09 14:12:35 -08:00
Chao Shen
c5f08c5eb8 Fix a bunch of stuffs in completion. 2018-02-09 20:51:59 +08:00
Chao Shen
60a7883d57 Downgrade loguru.
https://github.com/emilk/loguru/issues/58
2018-02-09 16:52:10 +08:00
Fangrui Song
a131ccdcb4 Remove ToQueryLocation 2018-02-08 23:43:18 -08:00
Fangrui Song
67e8132dbe struct QueryFuncRef : Reference {}; 2018-02-08 23:10:54 -08:00
Fangrui Song
4bfb5a3586 struct IndexFuncRef : Reference {}; 2018-02-08 22:06:09 -08:00
Fangrui Song
82b429bfbc QueryLocation -> Reference 2018-02-08 21:26:34 -08:00
Fangrui Song
2d255da07b {Index,Query}Type::uses: Range/QueryLocation -> Reference
And add serialization for Reference
2018-02-08 18:26:09 -08:00
Jacob Dufault
5f85867f88 Scan root directory for includes 2018-02-08 15:27:53 -08:00
Fangrui Song
48a6f836ca Fix SymbolRole serialization and make it hashable 2018-02-08 12:24:48 -08:00
Fangrui Song
715fece4dd QueryLocation and QueryRef 2018-02-08 10:15:55 -08:00
scturtle
be1ed58fc5 Reuse isIncomplete.
Add -fno-limit-debug-info for debugging.
2018-02-09 00:55:39 +08:00
Fangrui Song
dbdab02ff4 Change is_implicit to role in {Index,Query}FuncRef
Add `FileId file` to *DefDefinitionData::Def
2018-02-07 23:27:35 -08:00
Fangrui Song
10c2843846 Add IndexLocation and add role to QueryLocation
IndexFuncRef should be deprecated in favor of IndexLocation
2018-02-07 19:10:39 -08:00
Fangrui Song
9b0256355e Address ODR violation spot by @Riatre and work around .o .a in compile_commands.json 2018-02-07 10:27:30 -08:00
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