| Issue |
244481
|
| Summary |
[clang][BoundsSafety] Use a TextSubstitution for counted_by-family attribute names in diagnostics
|
| Labels |
clang:bounds-safety
|
| Assignees |
|
| Reporter |
rapidsna
|
About a dozen diagnostics in `DiagnosticSemaKinds.td` repeat the list `%select{counted_by|sized_by|counted_by_or_null|sized_by_or_null}`, whose order must match `BoundsAttributedType::BoundsAttrKind`. Define it once as a `TextSubstitution` and use `%sub{}`, as `select_cce_kind` does. No diagnostic text should change.
Suggested by @AaronBallman in https://github.com/llvm/llvm-project/pull/233582#discussion_r4563449281.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs