diff options
author | Alexander Kornienko <alexfh@google.com> | 2012-07-17 16:11:17 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2012-07-17 16:11:17 +0000 |
commit | 11330dc726dcb13e8826c25533ac5040443b7e6f (patch) | |
tree | 6d6a8767f50ddce649daa288ba55cddc2b7390a8 /clang/lib/Tooling/CustomCompilationDatabase.h | |
parent | 216d571af784d33fb0e9acaf18d7332d5672dc17 (diff) | |
download | bcm5719-llvm-11330dc726dcb13e8826c25533ac5040443b7e6f.tar.gz bcm5719-llvm-11330dc726dcb13e8826c25533ac5040443b7e6f.zip |
Add a custom initialize hook for clang tools + minor fixes in CustomCompilationDatabase.h
llvm-svn: 160369
Diffstat (limited to 'clang/lib/Tooling/CustomCompilationDatabase.h')
-rw-r--r-- | clang/lib/Tooling/CustomCompilationDatabase.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/Tooling/CustomCompilationDatabase.h b/clang/lib/Tooling/CustomCompilationDatabase.h index a24915a08f7..b375f8d2563 100644 --- a/clang/lib/Tooling/CustomCompilationDatabase.h +++ b/clang/lib/Tooling/CustomCompilationDatabase.h @@ -19,14 +19,14 @@ // custom compilation databases and make enabling that a build option. // //===----------------------------------------------------------------------===// +#ifndef LLVM_CLANG_TOOLING_CUSTOM_COMPILATION_DATABASE_H +#define LLVM_CLANG_TOOLING_CUSTOM_COMPILATION_DATABASE_H #include "llvm/ADT/StringRef.h" namespace clang { namespace tooling { class CompilationDatabase; -} -} /// \brief Returns a CompilationDatabase for the given \c Directory. /// @@ -35,3 +35,8 @@ class CompilationDatabase; /// parents. If a compilation database cannot be found or loaded, returns NULL. clang::tooling::CompilationDatabase *findCompilationDatabaseForDirectory( llvm::StringRef Directory); + +} // namespace tooling +} // namespace clang + +#endif // LLVM_CLANG_TOOLING_CUSTOM_COMPILATION_DATABASE_H |