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/include/clang-c/CXCompilationDatabase.h | |
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/include/clang-c/CXCompilationDatabase.h')
-rw-r--r-- | clang/include/clang-c/CXCompilationDatabase.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang-c/CXCompilationDatabase.h b/clang/include/clang-c/CXCompilationDatabase.h index d11133cf932..ff1ec63db05 100644 --- a/clang/include/clang-c/CXCompilationDatabase.h +++ b/clang/include/clang-c/CXCompilationDatabase.h @@ -95,6 +95,12 @@ clang_CompilationDatabase_getCompileCommands(CXCompilationDatabase, const char *CompleteFileName); /** + * \brief Get all the compile commands in the given compilation database. + */ +CINDEX_LINKAGE CXCompileCommands +clang_CompilationDatabase_getAllCompileCommands(CXCompilationDatabase); + +/** * \brief Free the given CompileCommands */ CINDEX_LINKAGE void clang_CompileCommands_dispose(CXCompileCommands); |