summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx11-attr-print.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement P1301R4, which allows specifying an optional message on the ↵Aaron Ballman2019-07-201-3/+5
| | | | | | | | [[nodiscard]] attribute. This also bumps the attribute feature test value and introduces the notion of a C++2a extension warning. llvm-svn: 366626
* Add an optional string argument to DeprecatedAttr for Fix-It.Manman Ren2016-03-161-0/+9
| | | | | | | | We only add this to __attribute__((deprecated)). Differential Revision: http://reviews.llvm.org/D17865 llvm-svn: 263652
* There is no std namespace for standards-based attributes. Removing the scope ↵Aaron Ballman2014-02-131-3/+0
| | | | | | qualifier and updating the only affected test case. llvm-svn: 201294
* Switched FormatAttr to using an IdentifierArgument instead of a ↵Aaron Ballman2013-09-031-1/+1
| | | | | | StringArgument since that is a more accurate modeling. llvm-svn: 189851
* Improved source code fidelity for gcc mode attribute.Enea Zaffanella2013-06-201-0/+3
| | | | llvm-svn: 184417
* Update tests to do a full match against printed C++11 attributes.Michael Han2013-02-261-7/+7
| | | | llvm-svn: 176074
* [Sema][Attr]Fix alignment attribute printing.Michael Han2013-02-011-7/+6
| | | | | | | | | Remove "IsMSDeclspec" argument from Align attribute since the arguments in Attr.td should only model those appear in source code. Introduce attribute Accessor, and teach TableGen to generate syntax kind accessors for Align attribute, and use those accessors to decide if an alignment attribute is a declspec attribute. llvm-svn: 174133
* Propagate the spelling list index for an attribute across template ↵Richard Smith2013-01-291-0/+21
| | | | | | instantiation. llvm-svn: 173768
* Treat alignas and _Alignas as keyword attributes. This allows us toRichard Smith2013-01-291-0/+6
| | | | | | | pretty-print them properly (modulo the more general badness in alignment attribute printing). llvm-svn: 173752
* Replace AS_MSTypespec with AS_Keyword, for representing any attribute spelledRichard Smith2013-01-291-3/+4
| | | | | | | | | as a keyword. Rationalize existing attributes to use it as appropriate, and to not lie about some __declspec attributes being GNU attributes. In passing, remove a gross hack which was discarding attributes which we could handle. This results in us actually respecting the __pascal keyword again. llvm-svn: 173746
* PR14922: when printing an attribute, use the real syntax of the attribute ↵Michael Han2013-01-241-0/+50
(GNU, C++11, MS Declspec) instead of hardcoded GNU syntax. Introduce a spelling index to Attr class, which is an index into the attribute spelling list of an attribute defined in Attr.td. This index will determine the actual spelling used by an attribute, as it incorporates both the syntax and naming of the attribute. When constructing an attribute AST node, the spelling index is computed based on attribute kind, scope (if it's a C++11 attribute), and name, then passed to Attr that will use the index to print itself. Thanks to Richard Smith for the idea and review. llvm-svn: 173358
OpenPOWER on IntegriCloud