We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35d77f6 + dd4b69f commit 6868fc6Copy full SHA for 6868fc6
clang/lib/Basic/Diagnostic.cpp
@@ -535,10 +535,7 @@ void WarningsSpecialCaseList::processSections(DiagnosticsEngine &Diags) {
535
// FIXME: We should make this configurable in the parser instead.
536
// FIXME: C++20 can use std::erase_if(Sections, [](Section &sec) { return
537
// sec.SectionStr == "*"; });
538
- Sections.erase(
539
- std::remove_if(Sections.begin(), Sections.end(),
540
- [](Section &sec) { return sec.SectionStr == "*"; }),
541
- Sections.end());
+ llvm::erase_if(Sections, [](Section &sec) { return sec.SectionStr == "*"; });
542
// Make sure we iterate sections by their line numbers.
543
std::vector<std::pair<unsigned, const Section *>> LineAndSectionEntry;
544
LineAndSectionEntry.reserve(Sections.size());
0 commit comments