[clang-format] Fix comment in spaceRequiredBefore. NFC.
authorMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Fri, 21 Jan 2022 17:17:55 +0000 (18:17 +0100)
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Fri, 21 Jan 2022 17:17:55 +0000 (18:17 +0100)
clang/lib/Format/TokenAnnotator.cpp

index 7fe0d31..3ba81df 100644 (file)
@@ -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;