diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-09 19:07:21 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-09 19:07:21 +0000 |
commit | 49385e8bd5312704cc9ef8a24bd713cc3463529c (patch) | |
tree | 237a11c399de7cd62d8ee746963f204e8de72ae7 /clang/tools/libclang/Indexing.cpp | |
parent | a4cffec19e89557843e162f84b1345590e6dae9f (diff) | |
download | bcm5719-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.cpp | 5 |
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. |