[PATCH] D141714: Fix ast print of variables with attributes
Giuliano Belinassi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 5 05:42:26 PDT 2023
giulianobelinassi updated this revision to Diff 547477.
giulianobelinassi added a comment.
Herald added subscribers: wangpc, s.egerton, simoncook, asb.
- Use tblgen to generate table of attributes that can or must be print on the left side of the Decl.
- Use LLVM_MARK_AS_BITMASK_ENUM on AttrPrintLoc enum.
- Print attributes of declarations contatining parenthesis ctors on the left side. Improves the case:
StructWithCopyConstructor s __attribute__((blocks("byref")))(5)
now printing:
__attribute__((blocks("byref"))) StructWithCopyConstructor s(5)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141714/new/
https://reviews.llvm.org/D141714
Files:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/CMakeLists.txt
clang/lib/AST/DeclPrinter.cpp
clang/test/AST/ast-print-attr-knr.c
clang/test/AST/ast-print-attr.c
clang/test/AST/ast-print-pragmas.cpp
clang/test/Analysis/blocks.mm
clang/test/OpenMP/assumes_codegen.cpp
clang/test/OpenMP/assumes_print.cpp
clang/test/OpenMP/assumes_template_print.cpp
clang/test/OpenMP/declare_simd_ast_print.cpp
clang/test/Sema/attr-print.c
clang/test/SemaCXX/attr-print.cpp
clang/test/SemaCXX/cxx11-attr-print.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp
clang/utils/TableGen/TableGen.cpp
clang/utils/TableGen/TableGenBackends.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141714.547477.patch
Type: text/x-patch
Size: 30847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230805/27b515e9/attachment-0001.bin>
More information about the cfe-commits
mailing list