Author: Marek Kurdej
Date: 2022-01-21T18:17:55+01:00
New Revision: 23a7bb541dae47e691be5380e96ca63f04d6d194

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

LOG: [clang-format] Fix comment in spaceRequiredBefore. NFC.

Added: 
    

Modified: 
    clang/lib/Format/TokenAnnotator.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Format/TokenAnnotator.cpp 
b/clang/lib/Format/TokenAnnotator.cpp
index 7fe0d319e5703..3ba81dfed38c2 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -3323,7 +3323,7 @@ bool TokenAnnotator::spaceRequiredBefore(const 
AnnotatedLine &Line,
     // or import .....;
     if (Left.is(Keywords.kw_import) && Right.isOneOf(tok::less, tok::ellipsis))
       return true;
-    // No space between module :.
+    // Space between `module :` and `import :`.
     if (Left.isOneOf(Keywords.kw_module, Keywords.kw_import) &&
         Right.is(TT_ModulePartitionColon))
       return true;


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

Reply via email to