Reid Kleckner
fa52674ac0
Fix has_attribute.cpp test on Windows after r364102
...
llvm-svn: 364108
2019-06-21 22:28:52 +00:00
Richard Smith
5050a8da18
Fix __has_cpp_attribute expansion to produce trailing L and (where
...
necessary) leading whitespace.
Simplify unit test and extend to cover no_unique_address attribute.
llvm-svn: 364102
2019-06-21 20:20:21 +00:00
Aaron Ballman
c44c174246
Introduce the _Clang scoped attribute token.
...
Currently, we only accept clang as the scoped attribute identifier for double square bracket attributes provided by Clang, but this has the potential to conflict with user-defined macros. To help alleviate these concerns, this introduces the _Clang scoped attribute identifier as an alias for clang. It also introduces a warning with a fixit on the off chance someone attempts to use __clang__ as the scoped attribute (which is a predefined compiler identification macro).
llvm-svn: 346521
2018-11-09 17:19:45 +00:00
Aaron Ballman
ad672ffb64
Support accepting __gnu__ as a scoped attribute namespace that aliases to gnu.
...
This is useful in libstdc++ to avoid clashes with identifiers in the user's namespace.
llvm-svn: 345132
2018-10-24 12:26:23 +00:00
Richard Smith
d5d796ecde
Define __has_cpp_attribute(fallthrough) to a more reasonable value. (What year is it?!)
...
llvm-svn: 262887
2016-03-08 00:40:32 +00:00
Aaron Ballman
3c0f9b4a7d
Added a new preprocessor macro: __has_declspec_attribute. This can be used as a way to determine whether Clang supports a __declspec spelling for a given attribute, similar to __has_attribute and __has_cpp_attribute.
...
llvm-svn: 223467
2014-12-05 15:05:29 +00:00
Timur Iskhodzhanov
f0934fa708
Convert CR+LF -> LF in a test file
...
llvm-svn: 222429
2014-11-20 12:59:14 +00:00
Richard Smith
c8b9badef7
Avoid earlier test interfering with later one.
...
llvm-svn: 222403
2014-11-20 01:50:37 +00:00
Aaron Ballman
a0344c5d7b
Complete support for the SD-6 standing document (based off N4200) with support for __has_cpp_attribute.
...
llvm-svn: 221991
2014-11-14 13:44:02 +00:00