]> granicus.if.org Git - clang/commit
After issuing a diagnostic for undefining or redefining a builtin macro,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 6 Mar 2013 00:46:00 +0000 (00:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 6 Mar 2013 00:46:00 +0000 (00:46 +0000)
commiteed55e6061768c0faff62dda22c6edad9d286501
tree2345984f87f42765e533be165639d8905efe95ed
parent75525c4cce5e1e097d3fab4391b11619d87cedfd
After issuing a diagnostic for undefining or redefining a builtin macro,
continue parsing the directive rather than silently discarding it.

Allowing undef or redef of __TIME__ and __DATE__ is important to folks
who want stable, reproducible builds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176540 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticLexKinds.td
lib/Lex/PPDirectives.cpp
test/Lexer/builtin_redef.c [new file with mode: 0644]
test/Misc/warning-flags.c