diff options
author | Daniel Jasper <djasper@google.com> | 2012-10-08 16:08:15 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-10-08 16:08:15 +0000 |
commit | d3420c906e3605d94c084e8b8b1f3fa490093c86 (patch) | |
tree | 2a1722cf436983cf2fcefbe3e56bdb6e538c3c57 /include/clang/Tooling/JSONCompilationDatabase.h | |
parent | 6b34c176994aaa781eff6cd8755a48cfb109e809 (diff) |
Support symlinks and relative paths in complilation databases.
Review: http://llvm-reviews.chandlerc.com/D30
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Tooling/JSONCompilationDatabase.h')
-rw-r--r-- | include/clang/Tooling/JSONCompilationDatabase.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Tooling/JSONCompilationDatabase.h b/include/clang/Tooling/JSONCompilationDatabase.h index 2ff2ba5a11..d62ab5c503 100644 --- a/include/clang/Tooling/JSONCompilationDatabase.h +++ b/include/clang/Tooling/JSONCompilationDatabase.h @@ -17,6 +17,7 @@ #include "clang/Basic/LLVM.h" #include "clang/Tooling/CompilationDatabase.h" +#include "clang/Tooling/FileMatchTrie.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" @@ -93,6 +94,8 @@ private: // Maps file paths to the compile command lines for that file. llvm::StringMap< std::vector<CompileCommandRef> > IndexByFile; + FileMatchTrie MatchTrie; + llvm::OwningPtr<llvm::MemoryBuffer> Database; llvm::SourceMgr SM; llvm::yaml::Stream YAMLStream; |