[LLVMbugs] [Bug 14922] New: Attr::printPretty is hardcoded to use GNU attribute syntax
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 11 09:40:49 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=14922
Bug #: 14922
Summary: Attr::printPretty is hardcoded to use GNU attribute
syntax
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: fragmentshaders at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In ClangAttrEmitter.cpp, Attr::printPretty is hardcoded to print the attribute
with GNU syntax. I assume it's because at the time this was written, all
attributes were using GNU syntax. Now we have at least four syntax (GNU, C++11,
MS Declspec, MS Type), it makes sense to print an attribute with the real
syntax the attribute uses in the source code. We can fix this by teaching Attr
class the variety of syntax (similar as the Syntax emum defined in
AttributeList) so it would know how to print an attribute by taking the syntax
into account.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list