diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-12-04 07:26:44 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-12-04 07:26:44 +0000 |
commit | 251ad5e06b2002ae8e0a0c1b2c03f89356fb55f5 (patch) | |
tree | fb08f72761a7ef459a4b7b29d5dafdfdc5f371ad /clang/lib/Tooling/CompilationDatabase.cpp | |
parent | 0e9acc94bc6bd2fdef0534b993b5a8fff70c6f77 (diff) | |
download | bcm5719-llvm-251ad5e06b2002ae8e0a0c1b2c03f89356fb55f5.tar.gz bcm5719-llvm-251ad5e06b2002ae8e0a0c1b2c03f89356fb55f5.zip |
Introduce CompilationDatabase::getAllCompileCommands() that returns all
compile commands of the database and expose it via the libclang API.
llvm-svn: 169226
Diffstat (limited to 'clang/lib/Tooling/CompilationDatabase.cpp')
-rw-r--r-- | clang/lib/Tooling/CompilationDatabase.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index 4149cda3787..ebdb96519c4 100644 --- a/clang/lib/Tooling/CompilationDatabase.cpp +++ b/clang/lib/Tooling/CompilationDatabase.cpp @@ -132,6 +132,11 @@ FixedCompilationDatabase::getAllFiles() const { return std::vector<std::string>(); } +std::vector<CompileCommand> +FixedCompilationDatabase::getAllCompileCommands() const { + return std::vector<CompileCommand>(); +} + // This anchor is used to force the linker to link in the generated object file // and thus register the JSONCompilationDatabasePlugin. extern volatile int JSONAnchorSource; |