aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexingContext.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-07 20:44:19 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-07 20:44:19 +0000
commitb1febb646bf7a2f319ad894c9833968c52d21711 (patch)
tree7277ce2d6f037ba6288c750318dfb4a8e33ae7c9 /tools/libclang/IndexingContext.h
parentb526a871af40b84d9878eded54a181bf4003b376 (diff)
[libclang] Indexing API: provide both the semantic and the lexical container.
They are generally the same except in C++ cases like out-of-line member functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/IndexingContext.h')
-rw-r--r--tools/libclang/IndexingContext.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/libclang/IndexingContext.h b/tools/libclang/IndexingContext.h
index ff5ca1b819..bce3ab33f0 100644
--- a/tools/libclang/IndexingContext.h
+++ b/tools/libclang/IndexingContext.h
@@ -54,7 +54,8 @@ struct DeclInfo : public CXIdxDeclInfo {
DInfoKind Kind;
EntityInfo EntInfo;
- ContainerInfo Container;
+ ContainerInfo SemanticContainer;
+ ContainerInfo LexicalContainer;
ContainerInfo DeclAsContainer;
DeclInfo(bool isRedeclaration, bool isDefinition, bool isContainer)
@@ -64,7 +65,7 @@ struct DeclInfo : public CXIdxDeclInfo {
this->isContainer = isContainer;
attributes = 0;
numAttributes = 0;
- declAsContainer = container = 0;
+ declAsContainer = semanticContainer = lexicalContainer = 0;
}
DeclInfo(DInfoKind K,
bool isRedeclaration, bool isDefinition, bool isContainer)
@@ -74,7 +75,7 @@ struct DeclInfo : public CXIdxDeclInfo {
this->isContainer = isContainer;
attributes = 0;
numAttributes = 0;
- declAsContainer = container = 0;
+ declAsContainer = semanticContainer = lexicalContainer = 0;
}
static bool classof(const DeclInfo *) { return true; }