[clang] 64dba97 - [NFC] Fix an inaccurate comment about typo-correction. (#108143)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 07:39:03 PDT 2024


Author: Michael Park
Date: 2024-09-12T16:38:59+02:00
New Revision: 64dba97a981393c21cff8bddc0d2272535da45d5

URL: https://github.com/llvm/llvm-project/commit/64dba97a981393c21cff8bddc0d2272535da45d5
DIFF: https://github.com/llvm/llvm-project/commit/64dba97a981393c21cff8bddc0d2272535da45d5.diff

LOG: [NFC] Fix an inaccurate comment about typo-correction. (#108143)

The comment describes "If the identifier was typo-corrected", but it
doesn't need to have been typo-corrected, just being annotated is enough
to retry.

Added: 
    

Modified: 
    clang/lib/Parse/ParseStmt.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index bdb3fc051d0b35..9188799fce13e6 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -228,7 +228,7 @@ StmtResult Parser::ParseStatementOrDeclarationAfterAttributes(
         return StmtError();
       }
 
-      // If the identifier was typo-corrected, try again.
+      // If the identifier was annotated, try again.
       if (Tok.isNot(tok::identifier))
         goto Retry;
     }


        


More information about the cfe-commits mailing list