summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/WhitespaceManager.h
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-05-27 15:23:34 +0000
committerManuel Klimek <klimek@google.com>2013-05-27 15:23:34 +0000
commit9043c74f497bfbb8ee708f5aee6229b2f212bc0b (patch)
tree1f8b6362db892b94e13812ad57ca180dd70d982c /clang/lib/Format/WhitespaceManager.h
parent111bb2ef8d117e0a51bdfaaa6fe8c8f407141c08 (diff)
downloadbcm5719-llvm-9043c74f497bfbb8ee708f5aee6229b2f212bc0b.tar.gz
bcm5719-llvm-9043c74f497bfbb8ee708f5aee6229b2f212bc0b.zip
Major refactoring of BreakableToken.
Unify handling of whitespace when breaking protruding tokens with other whitespace replacements. As a side effect, the BreakableToken structure changed significantly: - have a common base class for single-line breakable tokens, as they are much more similar - revamp handling of multi-line comments; we now calculate the information about lines in multi-line comments similar to normal tokens, and always issue replacements As a result, we were able to get rid of special casing of trailing whitespace deletion for comments in the whitespace manager and the BreakableToken and fixed bugs related to tab handling and escaped newlines. llvm-svn: 182738
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.h')
-rw-r--r--clang/lib/Format/WhitespaceManager.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Format/WhitespaceManager.h b/clang/lib/Format/WhitespaceManager.h
index 701ecff4e05..cdd8f1d10f3 100644
--- a/clang/lib/Format/WhitespaceManager.h
+++ b/clang/lib/Format/WhitespaceManager.h
@@ -67,14 +67,6 @@ public:
/// \brief Returns all the \c Replacements created during formatting.
const tooling::Replacements &generateReplacements();
- /// \brief Replaces \p ReplaceChars after \p SourceLoc with \p Text.
- ///
- /// FIXME: This is currently used to align comments outside of the \c
- /// WhitespaceManager. Once this has been moved inside, get rid of this
- /// method.
- void addReplacement(const SourceLocation &SourceLoc, unsigned ReplaceChars,
- StringRef Text);
-
private:
/// \brief Represents a change before a token, a break inside a token,
/// or the layout of an unchanged token (or whitespace within).
OpenPOWER on IntegriCloud