summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2015-09-11 20:43:05 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2015-09-11 20:43:05 +0000
commit74bcd21e342faffb558ff58d635f4c974c4213fc (patch)
treeff003ed177014ce223a0d7f2ea6900e480f6a522 /clang/include/clang-c
parent744267765caabf432cbcc126ad2726d96761a865 (diff)
downloadbcm5719-llvm-74bcd21e342faffb558ff58d635f4c974c4213fc.tar.gz
bcm5719-llvm-74bcd21e342faffb558ff58d635f4c974c4213fc.zip
[tooling] In CompileCommand, Expose the 'file' that was associated with the command.
llvm-svn: 247468
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/CXCompilationDatabase.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang-c/CXCompilationDatabase.h b/clang/include/clang-c/CXCompilationDatabase.h
index 068a677a95e..9359abfebfe 100644
--- a/clang/include/clang-c/CXCompilationDatabase.h
+++ b/clang/include/clang-c/CXCompilationDatabase.h
@@ -126,6 +126,12 @@ CINDEX_LINKAGE CXString
clang_CompileCommand_getDirectory(CXCompileCommand);
/**
+ * \brief Get the filename associated with the CompileCommand.
+ */
+CINDEX_LINKAGE CXString
+clang_CompileCommand_getFilename(CXCompileCommand);
+
+/**
* \brief Get the number of arguments in the compiler invocation.
*
*/
OpenPOWER on IntegriCloud