[PATCH] D137020: [clang][AST] Handle variable declaration with unknown typedef in C

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 5 11:46:27 PST 2022


aaron.ballman added inline comments.


================
Comment at: clang/lib/Parse/ParseStmt.cpp:177-178
+  case tok::kw___attribute:
+  case tok::kw_const:
+  case tok::kw_volatile:
+  case tok::star:
----------------
urazoff wrote:
> aaron.ballman wrote:
> > What about other qualifiers? `_Nullable` and `restrict` and whatnot?
> I think `restrict` can not go just after type name.
It can when you consider typedefs, as in: https://godbolt.org/z/hjK9f3xEc


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

https://reviews.llvm.org/D137020



More information about the cfe-commits mailing list