[clang] Add error check for HeuristicResolver (PR #155561)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 28 21:30:39 PDT 2025
================
@@ -658,13 +658,15 @@ class ASTBuilderAction : public ToolAction {
Invocation->getDiagnosticOpts(),
DiagConsumer,
/*ShouldOwnClient=*/false),
- Files);
+ Files, false, CaptureKinds);
if (!AST)
return false;
ASTs.push_back(std::move(AST));
return true;
}
+
+ CaptureDiagsKind CaptureKinds{CaptureDiagsKind::None};
----------------
HighCommander4 wrote:
I would make this a private field set via a (possibly optional) constructor parameter
https://github.com/llvm/llvm-project/pull/155561
More information about the cfe-commits
mailing list