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;
     }


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to