[PATCH] D137979: parse: process GNU and standard attributes on top-level decls

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 16 09:00:04 PST 2022


ymandel added inline comments.


================
Comment at: clang/unittests/Tooling/SourceCodeTest.cpp:259-268
+  // Includes attributes through macro expansion.
+  Visitor.runOverAnnotated(R"cpp(
+      #define MACRO_EXPANSION __attribute__((deprecated("message")))
+      $r[[MACRO_EXPANSION
+      int x;]])cpp");
+
+  // Includes attributes through macro expansion with comments.
----------------
Added tests, here and below, look good to me. Thanks!


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137979/new/

https://reviews.llvm.org/D137979



More information about the cfe-commits mailing list