r305293 - [clang-format] Document the StartOfTokenColumn parameter, NFC
Krasimir Georgiev via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 13 07:58:55 PDT 2017
Author: krasimir
Date: Tue Jun 13 09:58:55 2017
New Revision: 305293
URL: http://llvm.org/viewvc/llvm-project?rev=305293&view=rev
Log:
[clang-format] Document the StartOfTokenColumn parameter, NFC
Modified:
cfe/trunk/lib/Format/WhitespaceManager.h
Modified: cfe/trunk/lib/Format/WhitespaceManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/WhitespaceManager.h?rev=305293&r1=305292&r2=305293&view=diff
==============================================================================
--- cfe/trunk/lib/Format/WhitespaceManager.h (original)
+++ cfe/trunk/lib/Format/WhitespaceManager.h Tue Jun 13 09:58:55 2017
@@ -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);
More information about the cfe-commits
mailing list