CodeCompletionResult's Declaration field is a const pointer to the
NamedDecl, and thus the constructor should take a const pointer as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284019
91177308-0d34-0410-b5e6-
96231b3b80d8
/// \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),