[clang] [clang] Make documentation warnings faster with --warning-suppression-mappings= (PR #244714)
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 23 02:35:37 PST 2026
================
@@ -587,6 +590,8 @@ void DiagnosticsEngine::setDiagSuppressionMapping(llvm::MemoryBuffer &Input) {
return;
}
WarningSuppressionList->processSections(*this);
+ DiagsInSuppressionMapping.clear();
+ DiagsInSuppressionMapping.insert_range(WarningSuppressionList->mappedDiags());
----------------
zmodem wrote:
This creates a copy of the WarningSuppressionList's keys. Is there some way hasDiagSuppressionMappingFor() could reach into and check if the key exists in WarningSuppressionList's map instead?
https://github.com/llvm/llvm-project/pull/244714
More information about the cfe-commits
mailing list