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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to