llvm-project/clang/utils/TableGen
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
..
CMakeLists.txt Don't require exception handling for clang-tblgen. 2012-10-25 20:34:00 +00:00
ClangASTNodesEmitter.cpp Make clang-tblgen backends functions instead of TableGenBackends. 2012-06-13 05:12:41 +00:00
ClangAttrEmitter.cpp 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
ClangCommentCommandInfoEmitter.cpp Comment sema: warn when comment has \deprecated but declaration does not have a 2012-09-22 21:47:50 +00:00
ClangCommentHTMLTagsEmitter.cpp Comment HTML tag name machers: move from StringSwitch to an efficient 2012-08-31 02:21:44 +00:00
ClangDiagnosticsEmitter.cpp Error if an anonymous DiagGroup is referenced multiple times. 2013-01-10 18:50:46 +00:00
ClangSACheckersEmitter.cpp Don't throw exceptions in clang-tblgen by switching to PrintFatalError. 2012-10-25 16:37:08 +00:00
Makefile Don't require exception handling for clang-tblgen. 2012-10-25 20:34:00 +00:00
NeonEmitter.cpp Don't throw exceptions in clang-tblgen by switching to PrintFatalError. 2012-10-25 16:37:08 +00:00
OptParserEmitter.cpp Sort the #include lines under utils/... 2012-12-04 09:53:39 +00:00
TableGen.cpp 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
TableGenBackends.h 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