summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-11-13 13:23:27 +0000
committerManuel Klimek <klimek@google.com>2013-11-13 13:23:27 +0000
commit6192c93a53ff38499e0153888a7851dbbeeed5e4 (patch)
tree3597b5428a21be4847a0f8075e568132a959ae5f /clang/include/clang-c
parente10c1125dfc9a94e86f43206e2437e7fe24db521 (diff)
downloadbcm5719-llvm-6192c93a53ff38499e0153888a7851dbbeeed5e4.tar.gz
bcm5719-llvm-6192c93a53ff38499e0153888a7851dbbeeed5e4.zip
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
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/CXCompilationDatabase.h18
1 files changed, 18 insertions, 0 deletions
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
@@ -142,6 +142,24 @@ 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);
+
+/**
* @}
*/
OpenPOWER on IntegriCloud