llvm-project
027ca61e - Suppress octal literal diagnostics from system macros (#192481)

Commit
25 days ago
Suppress octal literal diagnostics from system macros (#192481) We emit two kinds of diagnostics related to octal literals. One is a compat/extension warning for use of 0o as the literal prefix and the other is a deprecation warning for use of 0 as the literal prefix. Clang now suppresses both of those diagnostics when the octal literal comes from a macro expansion of a macro defined in a system header. Those are not uses of the literal the user has any control over, generally, so the diagnostics are not helpful in that case. Fixes #192389
Author
Parents
Loading