[clang] b77b220 - [NFC] Fix typo in comment

Sven van Haastregt via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 2 03:39:37 PDT 2021


Author: Sven van Haastregt
Date: 2021-07-02T11:39:17+01:00
New Revision: b77b2201dc1f50f10e724c8c0b63963c5d98bf74

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

LOG: [NFC] Fix typo in comment

Reported-by: Marco Cali <marco.cali at arm.com>

Added: 
    

Modified: 
    clang/lib/Format/TokenAnnotator.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index aa69ff88bd747..2b83ff4f78503 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -363,7 +363,7 @@ class AnnotatingParser {
             Left->Previous && Left->Previous->is(tok::l_paren)) {
           // Detect the case where macros are used to generate lambdas or
           // function bodies, e.g.:
-          //   auto my_lambda = MARCO((Type *type, int i) { .. body .. });
+          //   auto my_lambda = MACRO((Type *type, int i) { .. body .. });
           for (FormatToken *Tok = Left; Tok != CurrentToken; Tok = Tok->Next) {
             if (Tok->is(TT_BinaryOperator) &&
                 Tok->isOneOf(tok::star, tok::amp, tok::ampamp))


        


More information about the cfe-commits mailing list