Previously if you specified no_sanitize("known_sanitizer") on a global you
would yield a misleading error "'no_sanitize' attribute only applies to
functions and methods", but no_sanitize("unknown") would simply be a warning,
"unknown sanitizer 'unknown' ignored". This changes the former to a warning
"'no_sanitize' attribute argument not supported for globals: known_sanitizer".
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM aside from a requested change in diagnostic wording (no need for additional review), though please also add a release note when landing so people know about the improvement here.
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
4056 | A slightly different color of bikeshed that might be easier on the eyes. |
A slightly different color of bikeshed that might be easier on the eyes.