================
@@ -333,8 +346,8 @@ static bool checkLanguageOptions(const LangOptions &LangOpts,
!AllowCompatibleDifferences)) { \
if (ExistingLangOpts.get##Name() != LangOpts.get##Name()) { \
if (Diags) \
- Diags->Report(diag::err_ast_file_langopt_value_mismatch) \
- << Description << ModuleFilename; \
+ diagnoseLanguageOptionValueMismatch(*Diags, Description, \
----------------
dzbarsky wrote:
good idea, i'll tweak that
https://github.com/llvm/llvm-project/pull/202843