aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-12 02:16:30 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-12 02:16:30 +0000
commit6ec43adc39006a7fce94188956d0239bd54c0363 (patch)
tree76689d6b1d0528535ca34a1e44005a1f9fdba94e /tools/libclang/IndexDecl.cpp
parent23d29c861f2770fe9f99ba80cca2e7cf4ac675ea (diff)
[libclang] Further simplify the indexing API.
That stuff can be added later on if we need them. Also add some const goodness. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/IndexDecl.cpp')
-rw-r--r--tools/libclang/IndexDecl.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/libclang/IndexDecl.cpp b/tools/libclang/IndexDecl.cpp
index 5087355a8d..58f449d3cc 100644
--- a/tools/libclang/IndexDecl.cpp
+++ b/tools/libclang/IndexDecl.cpp
@@ -29,9 +29,7 @@ public:
if (D->isThisDeclarationADefinition()) {
const Stmt *Body = D->getBody();
if (Body) {
- IndexCtx.startContainer(D, /*isBody=*/true);
IndexCtx.indexBody(Body, D);
- IndexCtx.endContainer(D);
}
}
return true;
@@ -93,10 +91,7 @@ public:
IndexCtx.handleObjCInterface(D);
IndexCtx.indexTUDeclsInObjCContainer();
- IndexCtx.startContainer(D);
- IndexCtx.defineObjCInterface(D);
IndexCtx.indexDeclContext(D);
- IndexCtx.endContainer(D);
return true;
}
@@ -108,9 +103,7 @@ public:
IndexCtx.handleObjCProtocol(D);
IndexCtx.indexTUDeclsInObjCContainer();
- IndexCtx.startContainer(D);
IndexCtx.indexDeclContext(D);
- IndexCtx.endContainer(D);
return true;
}
@@ -118,9 +111,7 @@ public:
IndexCtx.handleObjCImplementation(D);
IndexCtx.indexTUDeclsInObjCContainer();
- IndexCtx.startContainer(D);
IndexCtx.indexDeclContext(D);
- IndexCtx.endContainer(D);
return true;
}
@@ -128,9 +119,7 @@ public:
IndexCtx.handleObjCCategory(D);
IndexCtx.indexTUDeclsInObjCContainer();
- IndexCtx.startContainer(D);
IndexCtx.indexDeclContext(D);
- IndexCtx.endContainer(D);
return true;
}
@@ -141,9 +130,7 @@ public:
IndexCtx.handleObjCCategoryImpl(D);
IndexCtx.indexTUDeclsInObjCContainer();
- IndexCtx.startContainer(D);
IndexCtx.indexDeclContext(D);
- IndexCtx.endContainer(D);
return true;
}
@@ -157,9 +144,7 @@ public:
if (D->isThisDeclarationADefinition()) {
const Stmt *Body = D->getBody();
if (Body) {
- IndexCtx.startContainer(D, /*isBody=*/true);
IndexCtx.indexBody(Body, D);
- IndexCtx.endContainer(D);
}
}
return true;