From 84ebbdaf403fa5fb2ab13e9c247c0653617ecfe4 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Wed, 12 Oct 2016 15:33:35 +0000 Subject: [PATCH] NFC: CodeCompletionResult's constructor should take const NamedDecl CodeCompletionResult's Declaration field is a const pointer to the NamedDecl, and thus the constructor should take a const pointer as well. llvm-svn: 284019 --- clang/include/clang/Sema/CodeCompleteConsumer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Sema/CodeCompleteConsumer.h b/clang/include/clang/Sema/CodeCompleteConsumer.h index 4ad1b01..2ef6f10 100644 --- a/clang/include/clang/Sema/CodeCompleteConsumer.h +++ b/clang/include/clang/Sema/CodeCompleteConsumer.h @@ -737,7 +737,7 @@ public: /// \brief Build a result that refers to a pattern with an associated /// declaration. - CodeCompletionResult(CodeCompletionString *Pattern, NamedDecl *D, + CodeCompletionResult(CodeCompletionString *Pattern, const NamedDecl *D, unsigned Priority) : Declaration(D), Pattern(Pattern), Priority(Priority), StartParameter(0), Kind(RK_Pattern), Availability(CXAvailability_Available), Hidden(false), -- 2.7.4