Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions generator/preprocessorcallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ void PreprocessorCallback::MacroExpands(const clang::Token &MacroNameTok, MyMacr
// Temporarily change the diagnostics object so that we ignore any generated
// diagnostics from this pass.
clang::DiagnosticsEngine TmpDiags(PP.getDiagnostics().getDiagnosticIDs(),
#if CLANG_VERSION_MAJOR >= 21
PP.getDiagnostics().getDiagnosticOptions(),
#else
&PP.getDiagnostics().getDiagnosticOptions(),
#endif
new clang::IgnoringDiagConsumer);

disabled = true;
Expand Down