[cfe-commits] r92803 - in /cfe/trunk: include/clang-c/Index.h tools/CIndex/CIndex.cpp tools/CIndex/CIndex.exports

Ted Kremenek kremenek at apple.com
Tue Jan 5 15:21:30 PST 2010


Author: kremenek
Date: Tue Jan  5 17:21:30 2010
New Revision: 92803

URL: http://llvm.org/viewvc/llvm-project?rev=92803&view=rev
Log:
Remove deprecated function 'clang_getDeclSource()'.  Use 'clang_getDeclFile()' instead.

Modified:
    cfe/trunk/include/clang-c/Index.h
    cfe/trunk/tools/CIndex/CIndex.cpp
    cfe/trunk/tools/CIndex/CIndex.exports

Modified: cfe/trunk/include/clang-c/Index.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=92803&r1=92802&r2=92803&view=diff

==============================================================================
--- cfe/trunk/include/clang-c/Index.h (original)
+++ cfe/trunk/include/clang-c/Index.h Tue Jan  5 17:21:30 2010
@@ -332,7 +332,6 @@
 CINDEX_LINKAGE CXString clang_getDeclSpelling(CXDecl);
 CINDEX_LINKAGE unsigned clang_getDeclLine(CXDecl);
 CINDEX_LINKAGE unsigned clang_getDeclColumn(CXDecl);
-CINDEX_LINKAGE const char *clang_getDeclSource(CXDecl); /* deprecate */
 CINDEX_LINKAGE CXFile clang_getDeclSourceFile(CXDecl);
 
 typedef struct CXSourceLineColumn {

Modified: cfe/trunk/tools/CIndex/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=92803&r1=92802&r2=92803&view=diff

==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndex.cpp Tue Jan  5 17:21:30 2010
@@ -589,13 +589,6 @@
   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;

Modified: cfe/trunk/tools/CIndex/CIndex.exports
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.exports?rev=92803&r1=92802&r2=92803&view=diff

==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.exports (original)
+++ cfe/trunk/tools/CIndex/CIndex.exports Tue Jan  5 17:21:30 2010
@@ -24,7 +24,6 @@
 _clang_getDeclColumn
 _clang_getDeclLine
 _clang_getDeclExtent
-_clang_getDeclSource
 _clang_getDeclSourceFile
 _clang_getDeclSpelling
 _clang_getDeclarationName





More information about the cfe-commits mailing list