r336300 - [Index] Remove unused index::IndexDataConsumer::_anchor()

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 4 17:33:04 PDT 2018


Author: maskray
Date: Wed Jul  4 17:33:03 2018
New Revision: 336300

URL: http://llvm.org/viewvc/llvm-project?rev=336300&view=rev
Log:
[Index] Remove unused index::IndexDataConsumer::_anchor()

It was supposed to serve as a key function, but it was invalid as it was not the first out-of-line non-pure virtual function.

Modified:
    cfe/trunk/include/clang/Index/IndexDataConsumer.h
    cfe/trunk/lib/Index/IndexingAction.cpp

Modified: cfe/trunk/include/clang/Index/IndexDataConsumer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Index/IndexDataConsumer.h?rev=336300&r1=336299&r2=336300&view=diff
==============================================================================
--- cfe/trunk/include/clang/Index/IndexDataConsumer.h (original)
+++ cfe/trunk/include/clang/Index/IndexDataConsumer.h Wed Jul  4 17:33:03 2018
@@ -54,9 +54,6 @@ public:
                                      SymbolRoleSet Roles, SourceLocation Loc);
 
   virtual void finish() {}
-
-private:
-  virtual void _anchor();
 };
 
 } // namespace index

Modified: cfe/trunk/lib/Index/IndexingAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/IndexingAction.cpp?rev=336300&r1=336299&r2=336300&view=diff
==============================================================================
--- cfe/trunk/lib/Index/IndexingAction.cpp (original)
+++ cfe/trunk/lib/Index/IndexingAction.cpp Wed Jul  4 17:33:03 2018
@@ -19,8 +19,6 @@
 using namespace clang;
 using namespace clang::index;
 
-void IndexDataConsumer::_anchor() {}
-
 bool IndexDataConsumer::handleDeclOccurence(const Decl *D, SymbolRoleSet Roles,
                                             ArrayRef<SymbolRelation> Relations,
                                             SourceLocation Loc,




More information about the cfe-commits mailing list