forked from OSchip/llvm-project
Remove deprecated function 'clang_getDeclSource()'. Use 'clang_getDeclFile()' instead.
llvm-svn: 92803
This commit is contained in:
parent
a44d99c934
commit
bde648030b
|
@ -332,7 +332,6 @@ CINDEX_LINKAGE CXEntity clang_getEntityFromDecl(CXDecl);
|
|||
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 {
|
||||
|
|
|
@ -589,13 +589,6 @@ CXDeclExtent clang_getDeclExtent(CXDecl AnonDecl) {
|
|||
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;
|
||||
|
|
|
@ -24,7 +24,6 @@ _clang_getCursorSpelling
|
|||
_clang_getDeclColumn
|
||||
_clang_getDeclLine
|
||||
_clang_getDeclExtent
|
||||
_clang_getDeclSource
|
||||
_clang_getDeclSourceFile
|
||||
_clang_getDeclSpelling
|
||||
_clang_getDeclarationName
|
||||
|
|
Loading…
Reference in New Issue