[PATCH] D127284: [WIP] [clang-repl] Support statements on global scope in incremental mode.

Vassil Vassilev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 23 10:55:33 PDT 2022


v.g.vassilev added inline comments.


================
Comment at: clang/lib/Parse/ParseDecl.cpp:5247-5248
+  // ObjC
+  case tok::at:
+    return getLangOpts().ObjC;
+
----------------
rsmith wrote:
> In Objective-C, both declarations and expressions can start with `@`. In general we'd need to look at the next token to see what we have. But I'm not sure if there are any ObjC decl specifiers that use `@`-prefixed keywords.
Ok, let's worry about Objective-C after this patch.


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

https://reviews.llvm.org/D127284



More information about the cfe-commits mailing list