mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 03:55:49 +00:00
wip
This commit is contained in:
parent
843a86a4a9
commit
2a3ee89349
@ -3,10 +3,16 @@
|
||||
-std=c++11
|
||||
|
||||
# Includes
|
||||
-IC:/Users/jacob/Desktop/superindex/indexer/third_party
|
||||
-IC:/Users/jacob/Desktop/superindex/indexer/third_party/doctest/doctest
|
||||
-IC:/Users/jacob/Desktop/superindex/indexer/third_party/rapidjson/include
|
||||
-IC:/Program Files/LLVM/include
|
||||
# Windows
|
||||
#-IC:/Users/jacob/Desktop/superindex/indexer/third_party
|
||||
#-IC:/Users/jacob/Desktop/superindex/indexer/third_party/doctest
|
||||
#-IC:/Users/jacob/Desktop/superindex/indexer/third_party/rapidjson/include
|
||||
#-IC:/Program Files/LLVM/include
|
||||
# OSX
|
||||
-I/Users/jdufault/Personal/super-clang-index/third_party
|
||||
-I/Users/jdufault/Personal/super-clang-index/third_party/doctest
|
||||
-I/Users/jdufault/Personal/super-clang-index/third_party/rapidjson/include
|
||||
-I/Users/jdufault/Personal/super-clang-index/build/clang+llvm-4.0.0-x86_64-apple-darwin/include
|
||||
|
||||
# Use libcxx
|
||||
#-stdlib=libc++
|
||||
|
@ -142,7 +142,8 @@ std::vector<std::string> GetPlatformClangArguments() {
|
||||
return {
|
||||
"-stdlib=libc++",
|
||||
"-nostdinc++",
|
||||
"-I/usr/local/Cellar/llvm/3.9.1/include"
|
||||
//"-I/usr/local/Cellar/llvm/3.9.1/include",
|
||||
"-I/Users/jdufault/Personal/super-clang-index/libcxx/include"
|
||||
};
|
||||
}
|
||||
#undef CHECKED
|
||||
|
@ -131,10 +131,17 @@ QueryableVarDef::DefUpdate MapIdToUsr(const IdCache& id_cache, const VarDefDefin
|
||||
QueryableFile::QueryableFile(const IndexedFile& indexed)
|
||||
: file_id(indexed.path) {
|
||||
|
||||
// TODO: investigate this
|
||||
//std::cerr << "Adding QueryableFile for " << indexed.path
|
||||
// << ", file_path_to_file_id.size()=" << indexed.id_cache.file_path_to_file_id.size() << std::endl;
|
||||
//for (auto& entry : indexed.id_cache.file_path_to_file_id)
|
||||
// std::cerr << "-" << entry.first << std::endl;
|
||||
//assert(indexed.id_cache.file_path_to_file_id.find(indexed.path) !=
|
||||
// indexed.id_cache.file_path_to_file_id.end());
|
||||
auto it = indexed.id_cache.file_path_to_file_id.find(indexed.path);
|
||||
if (it == indexed.id_cache.file_path_to_file_id.end()) {
|
||||
// TODO: investigate
|
||||
std::cerr << "Unable to find cached file " << indexed.path << std::endl;
|
||||
std::cerr << "!!! FIXME !!! Unable to find cached file " << indexed.path << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
2
wscript
2
wscript
@ -85,7 +85,7 @@ def build(bld):
|
||||
print('CLANG_LIB_DIR: {0}'.format(CLANG_LIB_DIR))
|
||||
|
||||
cc_files = bld.path.ant_glob(['**/*.cpp', '**/*.cc'],
|
||||
excl=['*tests/*', 'third_party/*'])
|
||||
excl=['libcxx/*', '*tests/*', 'third_party/*'])
|
||||
bld.program(
|
||||
source=cc_files,
|
||||
cxxflags=['-std=c++11', '-Wall'],
|
||||
|
Loading…
Reference in New Issue
Block a user