hanchenye-llvm-project/clang/lib
Michael Han 9931593299 PR14922: when printing an attribute, use the real syntax of the attribute (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
2013-01-24 16:46:58 +00:00
..
ARCMigrate Re-sort all the headers. Lots of regressions have crept in here. 2013-01-19 08:09:44 +00:00
AST Add constness for NestedNameSpecifier::Create parameter 2013-01-23 17:06:56 +00:00
ASTMatchers Remove useless 'llvm::' qualifier from names like StringRef and others that are 2013-01-12 19:30:44 +00:00
Analysis -Wuninitialized: warn about uninitialized values resulting from ?: that evaluate to lvalues (in C++). 2013-01-19 00:25:06 +00:00
Basic PowerPC: fix __builtin_eh_return_data_regno return 2013-01-22 20:02:45 +00:00
CodeGen Add a new LangOpt NativeHalfType. This option allows for native half/fp16 2013-01-23 11:56:20 +00:00
Driver [Driver] Don't remove non-regular files that were outputs. 2013-01-23 01:08:23 +00:00
Edit Implement OpenCL event_t as Clang builtin type, including event_t related OpenCL restrictions (OpenCL 1.2 spec 6.9) 2013-01-20 12:31:11 +00:00
Format Add extra indent for nested calls inside if's. 2013-01-23 20:41:06 +00:00
Frontend Implement the writer side of the global module index. 2013-01-23 22:38:11 +00:00
FrontendTool use early returns to simplify and de-nest 2013-01-06 07:49:41 +00:00
Headers Parsing support for C11's _Noreturn keyword. No semantics yet. 2013-01-17 22:16:11 +00:00
Lex [PCH] Temporarily disable the "ambiguous macro" warning that is currently bogus with a PCH 2013-01-23 18:21:56 +00:00
Parse [ms-inline asm] Remove the -fenable-experimental-ms-inline-asm flag. MS-style 2013-01-22 19:38:32 +00:00
Rewrite Rework the traversal of Objective-C categories and extensions to 2013-01-16 23:00:23 +00:00
Sema PR14922: when printing an attribute, use the real syntax of the attribute (GNU, C++11, MS Declspec) instead of hardcoded GNU syntax. 2013-01-24 16:46:58 +00:00
Serialization clang/GlobalModuleIndex: Don't open the same file twice. Use raw_fd_ostream(fd, ...) instead. 2013-01-24 08:20:11 +00:00
StaticAnalyzer Add missing null check. Not sure why my tests passed before. 2013-01-23 21:12:49 +00:00
Tooling Nuke SetUpBuildDumpLog. 2013-01-20 01:58:28 +00:00
CMakeLists.txt Initial version of formatting library. 2012-12-03 18:12:45 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00