[PATCH] D156277: [Parser][ObjC] Stop parsing on eof
    Ding Fei via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Jul 26 01:35:28 PDT 2023
    
    
  
danix800 added inline comments.
================
Comment at: clang/lib/Parse/ParseObjc.cpp:749
+      if (!Tok.is(tok::eof))
+        ConsumeToken();
       break;
----------------
tbaeder wrote:
> Why is there a `ConsumeToken()` call at all here? The token is already being consumed in line 729.
Didn't notice this, thanks for reminding!
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156277/new/
https://reviews.llvm.org/D156277
    
    
More information about the cfe-commits
mailing list