From: Krasimir Georgiev Date: Tue, 13 Jun 2017 14:58:55 +0000 (+0000) Subject: [clang-format] Document the StartOfTokenColumn parameter, NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34f988d1538365595366eed30457369a2b3caa64;p=clang [clang-format] Document the StartOfTokenColumn parameter, NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305293 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/WhitespaceManager.h b/lib/Format/WhitespaceManager.h index 6be4af2622..50df59d096 100644 --- a/lib/Format/WhitespaceManager.h +++ b/lib/Format/WhitespaceManager.h @@ -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);