[flang-commits] [clang] [clang-tools-extra] [flang] [clang] Extend diagnose_if to accept more detailed warning information, take 2 (PR #119712)
Aaron Ballman via flang-commits
flang-commits at lists.llvm.org
Tue Jan 14 10:51:39 PST 2025
================
@@ -577,7 +577,17 @@ std::vector<Diag> StoreDiags::take(const clang::tidy::ClangTidyContext *Tidy) {
for (auto &Diag : Output) {
if (const char *ClangDiag = getDiagnosticCode(Diag.ID)) {
// Warnings controlled by -Wfoo are better recognized by that name.
- StringRef Warning = DiagnosticIDs::getWarningOptionForDiag(Diag.ID);
+ const StringRef Warning = [&] {
----------------
AaronBallman wrote:
```suggestion
StringRef Warning = [&] {
```
https://github.com/llvm/llvm-project/pull/119712
More information about the flang-commits
mailing list