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 | |
| 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')
| -rw-r--r-- | clang/include/clang-c/CXCompilationDatabase.h | 6 | ||||
| -rw-r--r-- | clang/include/clang-c/Index.h | 2 |
2 files changed, 7 insertions, 1 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); diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index aa3403cc80c..24c754d995c 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -32,7 +32,7 @@ * compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable. */ #define CINDEX_VERSION_MAJOR 0 -#define CINDEX_VERSION_MINOR 6 +#define CINDEX_VERSION_MINOR 7 #define CINDEX_VERSION_ENCODE(major, minor) ( \ ((major) * 10000) \ |

