================
@@ -23,7 +23,7 @@ AST_MATCHER(StringLiteral, isOrdinary) { return
Node.isOrdinary(); }
} // namespace
UseStdPrintCheck::UseStdPrintCheck(StringRef Name, ClangTidyContext *Context)
- : ClangTidyCheck(Name, Context),
+ : ClangTidyCheck(Name, Context), PP(PP),
----------------
AaronBallman wrote:
You should also add an `assert` to `check()` before we dereference `PP` to
ensure it's non-null.
https://github.com/llvm/llvm-project/pull/117173
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits