This commit is contained in:
Jacob Dufault 2017-03-25 18:37:16 -07:00
parent cc85f196f4
commit d3b9743040
4 changed files with 14 additions and 26 deletions

View File

@ -1,5 +0,0 @@
-std=c++11
-Ithird_party/rapidjson/include
-IC:/Program Files/LLVM/include
-fms-compatibility
-fdelayed-template-parsing

13
src/clang_args Normal file
View File

@ -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

View File

@ -3,26 +3,6 @@
#include "indexer.h" #include "indexer.h"
#include "serializer.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; using Usr = std::string;
// TODO: Switch over to QueryableLocation. Figure out if there is // TODO: Switch over to QueryableLocation. Figure out if there is

View File

@ -114,7 +114,7 @@ void RunTests() {
// Run test. // Run test.
std::cout << "[START] " << path << std::endl; 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); VerifySerializeToFrom(db);
std::string actual_output = db.ToString(); std::string actual_output = db.ToString();