This is consistent with -Wbuiltin-macro-redefined, and puts this common
extension warning under a flag.
Details
Details
- Reviewers
rsmith - Commits
- rL205591: Put macro redefinition warnings under -Wmacro-redefined
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
include/clang/Basic/DiagnosticGroups.td | ||
---|---|---|
51–52 | Do you think there's value in making BuiltinMacroRedefined a subgroup of MacroRedefined? I'm torn here -- logically one is a subset of the other, but redefining a builtin macro is a more serious offense. |
Comment Actions
Thanks!
include/clang/Basic/DiagnosticGroups.td | ||
---|---|---|
51–52 | I'd leave it as is. No need to impose artificial hierarchy. Users might accidentally suppress -Wbuiltin-macro-redefined with -Wno-macro-redefined. |
Do you think there's value in making BuiltinMacroRedefined a subgroup of MacroRedefined? I'm torn here -- logically one is a subset of the other, but redefining a builtin macro is a more serious offense.