Stephan Bergmann
|
feed26ff07
|
In stdbool.h, define bool, false, true only in gnu++98
GCC has meanwhile corrected that with the similar
<https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=216679> "C++11
explicitly forbids macros for bool, true and false."
Differential Revision: https://reviews.llvm.org/D40167
llvm-svn: 320135
|
2017-12-08 08:28:08 +00:00 |
Douglas Gregor
|
1a347f76c2
|
Reinstate r173952, this time limiting it to exactly the form
#define X X
for which there is no point warning, ever.
llvm-svn: 173991
|
2013-01-30 23:10:17 +00:00 |
Argyrios Kyrtzidis
|
a94bd438f8
|
Revert "[preprocessor] Don't warn about "disabled expansion of recursive macro""
This reverts commit r173952
llvm-svn: 173970
|
2013-01-30 20:42:17 +00:00 |
Argyrios Kyrtzidis
|
8c8684bbe1
|
[preprocessor] Don't warn about "disabled expansion of recursive macro"
for "#define X X".
This is a pattern that, for example, stdbool.h uses.
rdar://12435773
llvm-svn: 173952
|
2013-01-30 18:55:52 +00:00 |
Douglas Gregor
|
1f7d02fb6d
|
Define _Bool, bool, true, and false macros in <stdbool.h> when we're
in a GNU-compatible C++ dialect. Fixes <rdar://problem/8477819>.
llvm-svn: 115028
|
2010-09-29 04:57:11 +00:00 |