Merge pull request #84225 from hamishknight/access-noted

Requestify the loading of access notes
This commit is contained in:
Hamish Knight
2025-09-13 12:06:43 +01:00
committed by GitHub
18 changed files with 311 additions and 236 deletions

View File

@@ -1423,6 +1423,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.OptimizationRemarkMissedPattern =
generateOptimizationRemarkRegex(Diags, Args, A);
if (const Arg *A = Args.getLastArg(OPT_access_notes_path))
Opts.AccessNotesPath = A->getValue();
if (Arg *A = Args.getLastArg(OPT_Raccess_note)) {
auto value =
llvm::StringSwitch<std::optional<AccessNoteDiagnosticBehavior>>(