From 6192c93a53ff38499e0153888a7851dbbeeed5e4 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Wed, 13 Nov 2013 13:23:27 +0000 Subject: Add an optional mapping from source paths to source contents. This allows compilation database implementations for distributed build systems to hand all data to the client to make parsing independent of the file system. llvm-svn: 194571 --- clang/include/clang-c/CXCompilationDatabase.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'clang/include/clang-c/CXCompilationDatabase.h') diff --git a/clang/include/clang-c/CXCompilationDatabase.h b/clang/include/clang-c/CXCompilationDatabase.h index 198fd73bf88..fd65418f607 100644 --- a/clang/include/clang-c/CXCompilationDatabase.h +++ b/clang/include/clang-c/CXCompilationDatabase.h @@ -141,6 +141,24 @@ clang_CompileCommand_getNumArgs(CXCompileCommand); CINDEX_LINKAGE CXString clang_CompileCommand_getArg(CXCompileCommand, unsigned I); +/** + * \brief Get the number of source mappings for the compiler invocation. + */ +CINDEX_LINKAGE unsigned +clang_CompileCommand_getNumMappedSources(CXCompileCommand); + +/** + * \brief Get the I'th mapped source path for the compiler invocation. + */ +CINDEX_LINKAGE CXString +clang_CompileCommand_getMappedSourcePath(CXCompileCommand, unsigned I); + +/** + * \brief Get the I'th mapped source content for the compiler invocation. + */ +CINDEX_LINKAGE CXString +clang_CompileCommand_getMappedSourceContent(CXCompileCommand, unsigned I); + /** * @} */ -- cgit v1.2.3