[clang] [clang][CodeComplete] Use HeuristicResolver in getAsRecordDecl() (PR #130473)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 7 01:07:33 PDT 2025
================
@@ -54,8 +54,9 @@ IdentifierInfo *Parser::getSEHExceptKeyword() {
}
Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies)
- : PP(pp), PreferredType(pp.isCodeCompletionEnabled()), Actions(actions),
- Diags(PP.getDiagnostics()), StackHandler(Diags),
+ : PP(pp),
+ PreferredType(&actions.getASTContext(), pp.isCodeCompletionEnabled()),
----------------
zyn0217 wrote:
nit: I think we have a preference of using references than pointers if it is known to be non-null.
https://github.com/llvm/llvm-project/pull/130473
More information about the cfe-commits
mailing list