summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/ast-dump-attr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Sema: Variable definitions cannot be __attribute__((alias))David Majnemer2015-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | Things that are OK: extern int var1 __attribute((alias("v1"))); static int var2 __attribute((alias("v2"))); Things that are not OK: int var3 __attribute((alias("v3"))); extern int var4 __attribute((alias("v4"))) = 4; We choose to accpet: struct S { static int var5 __attribute((alias("v5"))); }; This code causes assertion failues in GCC 4.8 and ICC 13.0.1, we have no reason to reject it. This partially fixes PR22217. llvm-svn: 226436
* Adding attributes to the IndirectFieldDecl that we generate for anonymous ↵Aaron Ballman2014-10-151-1/+16
| | | | | | struct/union fields. This fixes PR20930. llvm-svn: 219807
* AST Dump: print the Inherited flag on attributesHans Wennborg2014-05-311-1/+7
| | | | | | | | | Also move the attribute-specific dumping to after dumping this and the Implicit flag. Differential Revision: http://reviews.llvm.org/D3971 llvm-svn: 209965
* Allow GNU-style attributes on lambda expressions.Aaron Ballman2014-03-121-0/+15
| | | | llvm-svn: 203628
* Adding a test case to ensure that type attributes applied to the ↵Aaron Ballman2014-02-281-1/+5
| | | | | | decl-specifier are applied across all declarations in a group. llvm-svn: 202501
* If an attribute has a semantically meaningful spelling (such as ↵Aaron Ballman2014-01-221-5/+5
| | | | | | ArgumentWithTypeTagAttr or MSInheritanceAttr), display the spelling used for the attribute as part of the AST dump. This should ease debugging the AST for these attributes. Attributes without semantically meaningful spelling variations are not affected. llvm-svn: 199834
* Distinguish between attributes explicitly written at the request of the ↵Aaron Ballman2014-01-161-0/+7
| | | | | | | | user, and attributes implicitly generated to assist in bookkeeping by the compiler. This is done so by table generating a CreateImplicit method for each attribute. Additionally, remove the optional nature of the spelling list index when creating attributes. This is supported by table generating a Spelling enumeration when the spellings for an attribute are distinct enough to warrant it. llvm-svn: 199378
* Removing the alloc_size attribute. The attribute was semantically handled, ↵Aaron Ballman2013-12-211-8/+0
| | | | | | but silently ignored. Most of this feature was already reverted in June 2012 (r159016), this just cleans up the pieces left over. llvm-svn: 197866
* PR8455: Handle an attribute between a goto label and a variable declaration perRichard Smith2013-11-151-0/+16
| | | | | | | the GNU documentation: the attribute only appertains to the label if it is followed by a semicolon. Based on a patch by Aaron Ballman! llvm-svn: 194869
* Add indents to AST dumping and removed parenthesis from AST nodes.Richard Trieu2013-01-311-2/+2
| | | | | | | | | | | | | | | | | | | | | Indents were given the color blue when outputting with color. AST dumping now looks like this: Node |-Node | `-Node `-Node `-Node Compared to the previous: (Node (Node (Node)) (Node (Node))) llvm-svn: 174022
* add a tripleRafael Espindola2013-01-071-1/+1
| | | | llvm-svn: 171808
* Implement Attr dumping for -ast-dump.Alexander Kornienko2013-01-071-0/+97
http://llvm-reviews.chandlerc.com/D234 Patch by Philip Craig! llvm-svn: 171760
OpenPOWER on IntegriCloud