summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/has_attribute.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve diagnostic for the case when a non-defined function-like macro is usedRichard Smith2016-04-161-1/+1
| | | | | | in a preprocessor constant expression. llvm-svn: 266495
* Disable __has_cpp_attribute when not compiling in C++ mode. As this feature ↵Aaron Ballman2015-05-111-1/+4
| | | | | | | | test macro only supports C++ style attributes, it doesn't apply to code compiled as C code, and can lead to diagnostics when given a scoped attribute. This addresses PR23435. llvm-svn: 236996
* Modify __has_attribute so that it only looks for GNU-style attributes. ↵Aaron Ballman2014-12-051-0/+5
| | | | | | Removes the ability to look for generic attributes and keywords via this macro, which has the potential to be a breaking change. However, since there is __has_cpp_attribute and __has_declspec_attribute, and given the limited usefulness of querying a generic attribute name regardless of syntax, this seems like the correct path forward. llvm-svn: 223468
* __has_attribute now understands target-specific attributes. So when you ask ↵Aaron Ballman2014-01-091-1/+11
| | | | | | whether an ARM target has the "interrupt" attribute, it will return true for ARM and MSP430 targets, and false for others. llvm-svn: 198897
* Generalize hack allowing 'const' in __has_attribute (etc) to allow any tokenRichard Smith2013-07-091-0/+4
| | | | | | | with identifier info. This covers most identifier-like entities (other than the ISO646 keywords). llvm-svn: 185895
* c: small refactoring of checking for __attribute__(const))Fariborz Jahanian2012-08-131-0/+10
| | | | | | per Richard's comment. llvm-svn: 161786
* Merge __has_attribute tests. Patch by Jonathan Sauer!Jean-Daniel Dupas2012-03-011-9/+21
| | | | llvm-svn: 151819
* Implement double underscore names support in __has_attributeJean-Daniel Dupas2012-03-011-0/+14
llvm-svn: 151809
OpenPOWER on IntegriCloud