diff options
author | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | c72c57c9e9b69944e3e009cd5e209634839581d3 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /tools/libclang/IndexingContext.h | |
parent | 5b20025c30d23d521e12c1f33ec8fa6b821952cd (diff) | |
download | FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.zip FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.tar.gz |
Vendor import of clang trunk r178860:
http://llvm.org/svn/llvm-project/cfe/trunk@178860
Diffstat (limited to 'tools/libclang/IndexingContext.h')
-rw-r--r-- | tools/libclang/IndexingContext.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/libclang/IndexingContext.h b/tools/libclang/IndexingContext.h index 0fc7238..c9097c5 100644 --- a/tools/libclang/IndexingContext.h +++ b/tools/libclang/IndexingContext.h @@ -7,11 +7,10 @@ // //===----------------------------------------------------------------------===// -#include "Index_Internal.h" #include "CXCursor.h" - -#include "clang/AST/DeclObjC.h" +#include "Index_Internal.h" #include "clang/AST/DeclGroup.h" +#include "clang/AST/DeclObjC.h" #include "llvm/ADT/DenseSet.h" #include <deque> @@ -89,6 +88,7 @@ struct DeclInfo : public CXIdxDeclInfo { attributes = 0; numAttributes = 0; declAsContainer = semanticContainer = lexicalContainer = 0; + flags = 0; } DeclInfo(DInfoKind K, bool isRedeclaration, bool isDefinition, bool isContainer) @@ -99,6 +99,7 @@ struct DeclInfo : public CXIdxDeclInfo { attributes = 0; numAttributes = 0; declAsContainer = semanticContainer = lexicalContainer = 0; + flags = 0; } }; @@ -493,7 +494,7 @@ private: void getContainerInfo(const DeclContext *DC, ContainerInfo &ContInfo); CXCursor getCursor(const Decl *D) { - return cxcursor::MakeCXCursor(const_cast<Decl*>(D), CXTU); + return cxcursor::MakeCXCursor(D, CXTU); } CXCursor getRefCursor(const NamedDecl *D, SourceLocation Loc); |