summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/Indexing.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-02-09 19:07:21 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-02-09 19:07:21 +0000
commit49385e8bd5312704cc9ef8a24bd713cc3463529c (patch)
tree237a11c399de7cd62d8ee746963f204e8de72ae7 /clang/tools/libclang/Indexing.cpp
parenta4cffec19e89557843e162f84b1345590e6dae9f (diff)
downloadbcm5719-llvm-49385e8bd5312704cc9ef8a24bd713cc3463529c.tar.gz
bcm5719-llvm-49385e8bd5312704cc9ef8a24bd713cc3463529c.zip
[libclang] indexing: handle 'TopLevelDeclInObjCContainers' at the point where they are reported.
It isn't much benefit and doesn't worth the complexity to try to handle them after the container is encountered. llvm-svn: 260254
Diffstat (limited to 'clang/tools/libclang/Indexing.cpp')
-rw-r--r--clang/tools/libclang/Indexing.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/tools/libclang/Indexing.cpp b/clang/tools/libclang/Indexing.cpp
index d6e35b0019c..4929d6244e5 100644
--- a/clang/tools/libclang/Indexing.cpp
+++ b/clang/tools/libclang/Indexing.cpp
@@ -327,9 +327,8 @@ public:
/// \brief Handle the specified top-level declaration that occurred inside
/// and ObjC container.
- void HandleTopLevelDeclInObjCContainer(DeclGroupRef D) override {
- // They will be handled after the interface is seen first.
- IndexCtx.addTUDeclInObjCContainer(D);
+ void HandleTopLevelDeclInObjCContainer(DeclGroupRef DG) override {
+ IndexCtx.indexDeclGroupRef(DG);
}
/// \brief This is called by the AST reader when deserializing things.
OpenPOWER on IntegriCloud