[PATCH] D111548: [Clang] Add the `annotate_type` attribute

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 4 06:52:51 PDT 2022


mboehme marked 2 inline comments as done.
mboehme added inline comments.


================
Comment at: clang/unittests/AST/AttrTest.cpp:89
+    S::* [[clang::annotate_type("ptr_to_mem")]] ptr_to_member = &S::mem;
+)cpp");
+
----------------
aaron.ballman wrote:
> The formatting looks a bit off for this in terms of indentation.
Fixed.


================
Comment at: clang/unittests/AST/AttrTest.cpp:159
+    __auto_type [[clang::annotate_type("auto")]] auto_var = 1;
+)c",
+                                 {"-fdouble-square-bracket-attributes"},
----------------
aaron.ballman wrote:
> Formatting looks a bit off here in terms of the indentation for this.
Fixed.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111548



More information about the cfe-commits mailing list