From d3b974304063d22997a6904ee97bd5d518729271 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Sat, 25 Mar 2017 18:37:16 -0700 Subject: [PATCH] wip --- clang_args | 5 ----- src/clang_args | 13 +++++++++++++ src/query.h | 20 -------------------- src/test.cc | 2 +- 4 files changed, 14 insertions(+), 26 deletions(-) delete mode 100644 clang_args create mode 100644 src/clang_args diff --git a/clang_args b/clang_args deleted file mode 100644 index 7b36ff31..00000000 --- a/clang_args +++ /dev/null @@ -1,5 +0,0 @@ --std=c++11 --Ithird_party/rapidjson/include --IC:/Program Files/LLVM/include --fms-compatibility --fdelayed-template-parsing \ No newline at end of file diff --git a/src/clang_args b/src/clang_args new file mode 100644 index 00000000..52bf7bc1 --- /dev/null +++ b/src/clang_args @@ -0,0 +1,13 @@ +-xc++ +-std=c++11 +-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 + +#--sysrootC:/Users/jacob/Desktop/superindex/indexer/libcxx +#-IC:/Users/jacob/Desktop/superindex/indexer/libcxx/include +#-FC:/Users/jacob/Desktop/superindex/indexer/libcxx/include + +-fms-compatibility +-fdelayed-template-parsing \ No newline at end of file diff --git a/src/query.h b/src/query.h index d3c5c898..84e9fe85 100644 --- a/src/query.h +++ b/src/query.h @@ -3,26 +3,6 @@ #include "indexer.h" #include "serializer.h" -// NOTE: If updating this enum, make sure to also update the parser and the -// help text. -enum class Command { - Callees, - Callers, - FindAllUsages, - FindInterestingUsages, - GotoReferenced, - Hierarchy, - Outline, - Search -}; - -// NOTE: If updating this enum, make sure to also update the parser and the -// help text. -enum class PreferredSymbolLocation { - Declaration, - Definition -}; - using Usr = std::string; // TODO: Switch over to QueryableLocation. Figure out if there is diff --git a/src/test.cc b/src/test.cc index 63c66d5d..69f4cc9c 100644 --- a/src/test.cc +++ b/src/test.cc @@ -114,7 +114,7 @@ void RunTests() { // Run test. std::cout << "[START] " << path << std::endl; - IndexedFile db = Parse(path, {"-IC:/Users/jacob/Desktop/superindex/src"}, false /*dump_ast*/); + IndexedFile db = Parse(path, {}, false /*dump_ast*/); VerifySerializeToFrom(db); std::string actual_output = db.ToString();