summaryrefslogtreecommitdiffstats
path: root/clang/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
commit3e429e7cc4180127fab09a6817baaf7aede36c33 (patch)
tree6b3a9248486bcc0b731993a052bbe3a1521118dc /clang/tools/libclang/IndexDecl.cpp
parent415ecbc34a5048d8056939883606c22c52a64266 (diff)
downloadbcm5719-llvm-3e429e7cc4180127fab09a6817baaf7aede36c33.tar.gz
bcm5719-llvm-3e429e7cc4180127fab09a6817baaf7aede36c33.zip
[libclang] Further simplify the indexing API.
That stuff can be added later on if we need them. Also add some const goodness. llvm-svn: 144446
Diffstat (limited to 'clang/tools/libclang/IndexDecl.cpp')
-rw-r--r--clang/tools/libclang/IndexDecl.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/tools/libclang/IndexDecl.cpp b/clang/tools/libclang/IndexDecl.cpp
index 5087355a8dd..58f449d3cc4 100644
--- a/clang/tools/libclang/IndexDecl.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud