aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/WhitespaceManager.h
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-04-17 17:34:05 +0000
committerAlexander Kornienko <alexfh@google.com>2013-04-17 17:34:05 +0000
commit919398bb40d5d643f38b6595f5e8eac641e89d50 (patch)
tree6eaa11a379dea98cfa871eac894cb71cd4810568 /lib/Format/WhitespaceManager.h
parentd82fdf059724bfa0b7601833db5fff2b42853f60 (diff)
Unified token breaking logic: support for line comments.
Summary: Added BreakableLineComment, moved common code from BreakableBlockComment to newly added BreakableComment. As a side-effect of the rewrite, found another problem with escaped newlines and had to change code which removes trailing whitespace from line comments not to break after this patch. Reviewers: klimek, djasper Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D682 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/WhitespaceManager.h')
-rw-r--r--lib/Format/WhitespaceManager.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Format/WhitespaceManager.h b/lib/Format/WhitespaceManager.h
index d880069595..252997f6d8 100644
--- a/lib/Format/WhitespaceManager.h
+++ b/lib/Format/WhitespaceManager.h
@@ -67,21 +67,6 @@ public:
void addUntouchableComment(unsigned Column);
private:
- static StringRef getLineCommentPrefix(StringRef Comment);
-
- /// \brief Splits one line in a line comment, if it doesn't fit to
- /// provided column limit. Removes trailing whitespace in each line.
- ///
- /// \param Line points to the line contents without leading // or /*.
- ///
- /// \param StartColumn is the column where the first character of Line will be
- /// located after formatting.
- ///
- /// \param LinePrefix is inserted after each line break.
- void splitLineComment(const FormatToken &Tok, StringRef Line,
- size_t StartColumn, StringRef LinePrefix,
- const char *WhiteSpaceChars = " ");
-
std::string getNewLineText(unsigned NewLines, unsigned Spaces);
std::string getNewLineText(unsigned NewLines, unsigned Spaces,