diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-23 17:21:11 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-23 17:21:11 +0000 |
commit | fe0483dbeaab731c9d55d12d9bfdb1fb8833c8f7 (patch) | |
tree | 6d448f45380c27236da71f1bc7b33fe608e8b2e6 /clang/lib/Frontend | |
parent | cd86115d8a94e1a0c1ad93cd60963524fa297c96 (diff) | |
download | bcm5719-llvm-fe0483dbeaab731c9d55d12d9bfdb1fb8833c8f7.tar.gz bcm5719-llvm-fe0483dbeaab731c9d55d12d9bfdb1fb8833c8f7.zip |
Use 'const Decl *' throughout code completion in Sema
llvm-svn: 173277
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/ASTUnit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index 4feaad81e64..fcc8ea8f8df 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -270,7 +270,7 @@ void ASTUnit::setPreprocessor(Preprocessor *pp) { PP = pp; } /// \brief Determine the set of code-completion contexts in which this /// declaration should be shown. -static unsigned getDeclShowContexts(NamedDecl *ND, +static unsigned getDeclShowContexts(const NamedDecl *ND, const LangOptions &LangOpts, bool &IsNestedNameSpecifier) { IsNestedNameSpecifier = false; @@ -312,7 +312,7 @@ static unsigned getDeclShowContexts(NamedDecl *ND, // Part of the nested-name-specifier in C++0x. if (LangOpts.CPlusPlus11) IsNestedNameSpecifier = true; - } else if (RecordDecl *Record = dyn_cast<RecordDecl>(ND)) { + } else if (const RecordDecl *Record = dyn_cast<RecordDecl>(ND)) { if (Record->isUnion()) Contexts |= (1LL << CodeCompletionContext::CCC_UnionTag); else |