For now, add back clang_getDeclSource().
llvm-svn: 93003
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp
index 28a86e7..19e82fc 100644
--- a/clang/tools/CIndex/CIndex.cpp
+++ b/clang/tools/CIndex/CIndex.cpp
@@ -718,6 +718,13 @@
return extent;
}
+const char *clang_getDeclSource(CXDecl AnonDecl) {
+ assert(AnonDecl && "Passed null CXDecl");
+ FileEntry *FEnt = static_cast<FileEntry *>(clang_getDeclSourceFile(AnonDecl));
+ assert(FEnt && "Cannot find FileEntry for Decl");
+ return clang_getFileName(FEnt);
+}
+
static const FileEntry *getFileEntryFromSourceLocation(SourceManager &SMgr,
SourceLocation SLoc) {
FileID FID;