[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
================
@@ -692,10 +694,13 @@ std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs(
StringRef Code, const std::vector<std::string> &Args, StringRef FileName,
StringRef ToolName, std::shared_ptr<PCHContainerOperations> PCHContainerOps,
ArgumentsAdjuster Adjuster, const FileContentMappings &VirtualMappedFiles,
- DiagnosticConsumer *DiagConsumer,
+ DiagnosticConsumer *DiagConsumer, CaptureDiagsKind CaptureKind,
IntrusiveRefCntPtr<llvm::vfs::FileSystem> BaseFS) {
std::vector<std::unique_ptr<ASTUnit>> ASTs;
+
ASTBuilderAction Action(ASTs);
+ Action.CaptureKinds = CaptureDiagsKind::All;
----------------
HighCommander4 wrote:
I think you mean to be propagating the `CaptureKind` parameter, rather than harcoding `CaptureDiagsKind::All` here
https://github.com/llvm/llvm-project/pull/155561
More information about the cfe-commits
mailing list