Skip to content

Commit 1427226

Browse files
committed
Removed dead code from clang/tools/libclang/CXIndexDataConsumer.{cpp,h}
Reviewers: jkorous Subscribers: dexonsmith, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66156 llvm-svn: 368805
1 parent d4c50f7 commit 1427226

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

clang/tools/libclang/CXIndexDataConsumer.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -633,12 +633,6 @@ bool CXIndexDataConsumer::handleField(const FieldDecl *D) {
633633
return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
634634
}
635635

636-
bool CXIndexDataConsumer::handleMSProperty(const MSPropertyDecl *D) {
637-
DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true,
638-
/*isContainer=*/false);
639-
return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
640-
}
641-
642636
bool CXIndexDataConsumer::handleEnumerator(const EnumConstantDecl *D) {
643637
DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true,
644638
/*isContainer=*/false);
@@ -888,20 +882,6 @@ bool CXIndexDataConsumer::handleTypeAliasTemplate(const TypeAliasTemplateDecl *D
888882
return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
889883
}
890884

891-
bool CXIndexDataConsumer::handleReference(const NamedDecl *D, SourceLocation Loc,
892-
const NamedDecl *Parent,
893-
const DeclContext *DC,
894-
const Expr *E,
895-
CXIdxEntityRefKind Kind,
896-
CXSymbolRole Role) {
897-
if (!D || !DC)
898-
return false;
899-
900-
CXCursor Cursor = E ? MakeCXCursor(E, cast<Decl>(DC), CXTU)
901-
: getRefCursor(D, Loc);
902-
return handleReference(D, Loc, Cursor, Parent, DC, E, Kind, Role);
903-
}
904-
905885
bool CXIndexDataConsumer::handleReference(const NamedDecl *D, SourceLocation Loc,
906886
CXCursor Cursor,
907887
const NamedDecl *Parent,

clang/tools/libclang/CXIndexDataConsumer.h

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -372,25 +372,6 @@ class CXIndexDataConsumer : public index::IndexDataConsumer {
372372

373373
void startedTranslationUnit();
374374

375-
void indexDecl(const Decl *D);
376-
377-
void indexTagDecl(const TagDecl *D);
378-
379-
void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent,
380-
const DeclContext *DC = nullptr);
381-
382-
void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
383-
const DeclContext *DC = nullptr);
384-
385-
void indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
386-
const NamedDecl *Parent,
387-
const DeclContext *DC = nullptr);
388-
389-
void indexDeclContext(const DeclContext *DC);
390-
391-
void indexBody(const Stmt *S, const NamedDecl *Parent,
392-
const DeclContext *DC = nullptr);
393-
394375
void indexDiagnostics();
395376

396377
void handleDiagnosticSet(CXDiagnosticSet CXDiagSet);
@@ -401,8 +382,6 @@ class CXIndexDataConsumer : public index::IndexDataConsumer {
401382

402383
bool handleField(const FieldDecl *D);
403384

404-
bool handleMSProperty(const MSPropertyDecl *D);
405-
406385
bool handleEnumerator(const EnumConstantDecl *D);
407386

408387
bool handleTagDecl(const TagDecl *D);
@@ -438,18 +417,8 @@ class CXIndexDataConsumer : public index::IndexDataConsumer {
438417
CXIdxEntityRefKind Kind = CXIdxEntityRef_Direct,
439418
CXSymbolRole Role = CXSymbolRole_None);
440419

441-
bool handleReference(const NamedDecl *D, SourceLocation Loc,
442-
const NamedDecl *Parent,
443-
const DeclContext *DC,
444-
const Expr *E = nullptr,
445-
CXIdxEntityRefKind Kind = CXIdxEntityRef_Direct,
446-
CXSymbolRole Role = CXSymbolRole_None);
447-
448420
bool isNotFromSourceFile(SourceLocation Loc) const;
449421

450-
void indexTopLevelDecl(const Decl *D);
451-
void indexDeclGroupRef(DeclGroupRef DG);
452-
453422
void translateLoc(SourceLocation Loc, CXIdxClientFile *indexFile, CXFile *file,
454423
unsigned *line, unsigned *column, unsigned *offset);
455424

0 commit comments

Comments
 (0)