[clang] [clang] Forward `-fvalidate-ast-input-files-content` when loading an AST dump (PR #196298)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon May 11 03:12:33 PDT 2026


================
@@ -780,11 +780,16 @@ std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile(
       DisableValidationForModuleKind::None;
   if (::getenv("LIBCLANG_DISABLE_PCH_VALIDATION"))
     disableValid = DisableValidationForModuleKind::All;
+  bool ValidateASTInputFilesContent = HSOpts.ValidateASTInputFilesContent;
----------------
steakhal wrote:

Given the length of this option, it makes me wonder if we should just inline this.

https://github.com/llvm/llvm-project/pull/196298


More information about the cfe-commits mailing list