[PATCH] Improve attributes printing.

Michael Han fragmentshaders at gmail.com
Tue Mar 19 13:49:47 PDT 2013


  Update patch to teach printPretty making the decision of print an attribute or not based on an enum value that identifies where the attribute appears around declaration and statement. For C++11 attributes, we always print them at the start of declarations or immediately after declarator-id to make sure they appertain to declarator rather than a type (since we don't support any such attribute yet.).

Hi rsmith,

http://llvm-reviews.chandlerc.com/D395

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D395?vs=1159&id=1315#toc

Files:
  utils/TableGen/ClangAttrEmitter.cpp
  lib/AST/DeclPrinter.cpp
  lib/AST/StmtPrinter.cpp
  test/SemaCXX/cxx11-attr-print.cpp
  include/clang/AST/Attr.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D395.4.patch
Type: text/x-patch
Size: 8464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130319/70877dcd/attachment.bin>


More information about the cfe-commits mailing list