[PATCH] D66156: Removed dead code from clang/tools/libclang/CXIndexDataConsumer.{cpp,h}
Dmitri Gribenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 14 00:32:03 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL368805: Removed dead code from clang/tools/libclang/CXIndexDataConsumer.{cpp,h} (authored by gribozavr, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D66156?vs=214890&id=215035#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66156/new/
https://reviews.llvm.org/D66156
Files:
cfe/trunk/tools/libclang/CXIndexDataConsumer.cpp
cfe/trunk/tools/libclang/CXIndexDataConsumer.h
Index: cfe/trunk/tools/libclang/CXIndexDataConsumer.h
===================================================================
--- cfe/trunk/tools/libclang/CXIndexDataConsumer.h
+++ cfe/trunk/tools/libclang/CXIndexDataConsumer.h
@@ -372,25 +372,6 @@
void startedTranslationUnit();
- void indexDecl(const Decl *D);
-
- void indexTagDecl(const TagDecl *D);
-
- void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent,
- const DeclContext *DC = nullptr);
-
- void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
- const DeclContext *DC = nullptr);
-
- void indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
- const NamedDecl *Parent,
- const DeclContext *DC = nullptr);
-
- void indexDeclContext(const DeclContext *DC);
-
- void indexBody(const Stmt *S, const NamedDecl *Parent,
- const DeclContext *DC = nullptr);
-
void indexDiagnostics();
void handleDiagnosticSet(CXDiagnosticSet CXDiagSet);
@@ -401,8 +382,6 @@
bool handleField(const FieldDecl *D);
- bool handleMSProperty(const MSPropertyDecl *D);
-
bool handleEnumerator(const EnumConstantDecl *D);
bool handleTagDecl(const TagDecl *D);
@@ -438,18 +417,8 @@
CXIdxEntityRefKind Kind = CXIdxEntityRef_Direct,
CXSymbolRole Role = CXSymbolRole_None);
- bool handleReference(const NamedDecl *D, SourceLocation Loc,
- const NamedDecl *Parent,
- const DeclContext *DC,
- const Expr *E = nullptr,
- CXIdxEntityRefKind Kind = CXIdxEntityRef_Direct,
- CXSymbolRole Role = CXSymbolRole_None);
-
bool isNotFromSourceFile(SourceLocation Loc) const;
- void indexTopLevelDecl(const Decl *D);
- void indexDeclGroupRef(DeclGroupRef DG);
-
void translateLoc(SourceLocation Loc, CXIdxClientFile *indexFile, CXFile *file,
unsigned *line, unsigned *column, unsigned *offset);
Index: cfe/trunk/tools/libclang/CXIndexDataConsumer.cpp
===================================================================
--- cfe/trunk/tools/libclang/CXIndexDataConsumer.cpp
+++ cfe/trunk/tools/libclang/CXIndexDataConsumer.cpp
@@ -633,12 +633,6 @@
return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
}
-bool CXIndexDataConsumer::handleMSProperty(const MSPropertyDecl *D) {
- DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true,
- /*isContainer=*/false);
- return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
-}
-
bool CXIndexDataConsumer::handleEnumerator(const EnumConstantDecl *D) {
DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true,
/*isContainer=*/false);
@@ -889,20 +883,6 @@
}
bool CXIndexDataConsumer::handleReference(const NamedDecl *D, SourceLocation Loc,
- const NamedDecl *Parent,
- const DeclContext *DC,
- const Expr *E,
- CXIdxEntityRefKind Kind,
- CXSymbolRole Role) {
- if (!D || !DC)
- return false;
-
- CXCursor Cursor = E ? MakeCXCursor(E, cast<Decl>(DC), CXTU)
- : getRefCursor(D, Loc);
- return handleReference(D, Loc, Cursor, Parent, DC, E, Kind, Role);
-}
-
-bool CXIndexDataConsumer::handleReference(const NamedDecl *D, SourceLocation Loc,
CXCursor Cursor,
const NamedDecl *Parent,
const DeclContext *DC,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66156.215035.patch
Type: text/x-patch
Size: 3745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190814/9430d2f2/attachment.bin>
More information about the cfe-commits
mailing list