[PATCH] D43748: [Attr] Fix paren, comma, and omitted arg printing in some cases

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 27 08:12:25 PST 2018


aaron.ballman added inline comments.


================
Comment at: test/Sema/attr-print.c:12
+short arr[3] __attribute__((aligned));
+
 // CHECK: void foo() __attribute__((const));
----------------
Please add a test showing that `objc_bridge_related` isn't mangled by `-ast-print`.


================
Comment at: utils/TableGen/ClangAttrEmitter.cpp:303-304
+    std::string getIsOmitted() const override {
+      if (type == "FunctionDecl *")
+        return "false";
+      if (type == "IdentifierInfo *")
----------------
I think you can remove this case and the `TypeSourceInfo *` as well and just rely on returning `"false"` in those cases.


https://reviews.llvm.org/D43748





More information about the cfe-commits mailing list