mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-17 06:01:15 +00:00
17 lines
427 B
C++
17 lines
427 B
C++
|
#include <clang-c/Index.h>
|
||
|
|
||
|
void doit() {
|
||
|
// we should probably main two translation units, one for
|
||
|
// serving current requests, and one that is reparsing (follow qtcreator)
|
||
|
|
||
|
// use clang_codeCompleteAt
|
||
|
|
||
|
// we need to setup CXUnsavedFile
|
||
|
// The key to doing that is via
|
||
|
// - textDocument/didOpen
|
||
|
// - textDocument/didChange
|
||
|
// - textDocument/didClose
|
||
|
|
||
|
// probably don't need
|
||
|
// - textDocument/willSave
|
||
|
}
|