diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-07 20:44:19 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-07 20:44:19 +0000 |
commit | b1febb646bf7a2f319ad894c9833968c52d21711 (patch) | |
tree | 7277ce2d6f037ba6288c750318dfb4a8e33ae7c9 /tools/libclang/IndexingContext.h | |
parent | b526a871af40b84d9878eded54a181bf4003b376 (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.h | 7 |
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; } |