]> granicus.if.org Git - clang/commitdiff
[clang-format] Document the StartOfTokenColumn parameter, NFC
authorKrasimir Georgiev <krasimir@google.com>
Tue, 13 Jun 2017 14:58:55 +0000 (14:58 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 13 Jun 2017 14:58:55 +0000 (14:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305293 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/WhitespaceManager.h

index 6be4af2622766c73ff5bd90a56fb4b671dd46459..50df59d09641dda42c557f6f0e8e214ecf0cae41 100644 (file)
@@ -43,6 +43,10 @@ public:
 
   /// \brief Replaces the whitespace in front of \p Tok. Only call once for
   /// each \c AnnotatedToken.
+  ///
+  /// \p StartOfTokenColumn is the column at which the token will start after
+  /// this replacement. It is needed for determining how \p Spaces is turned
+  /// into tabs and spaces for some format styles.
   void replaceWhitespace(FormatToken &Tok, unsigned Newlines, unsigned Spaces,
                          unsigned StartOfTokenColumn,
                          bool InPPDirective = false);