summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-06-30 22:29:28 +0000
committerCraig Topper <craig.topper@gmail.com>2013-06-30 22:29:28 +0000
commitaf35e8521abc4ffd081ed4aeed3a9496e60915d8 (patch)
treed910d3831139083a71942c6da02dec247c21ad07 /clang/lib/Format
parenta8a50248d85d1a7d87b0e0401dbd3d5a3781260a (diff)
downloadbcm5719-llvm-af35e8521abc4ffd081ed4aeed3a9496e60915d8.tar.gz
bcm5719-llvm-af35e8521abc4ffd081ed4aeed3a9496e60915d8.zip
Put helper classes into anonymous namespace.
llvm-svn: 185295
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/Format.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 7d6bc14241e..7b9950a43b0 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -248,6 +248,8 @@ static unsigned getLengthToMatchingParen(const FormatToken &Tok) {
return End->TotalLength - Tok.TotalLength + 1;
}
+namespace {
+
class UnwrappedLineFormatter {
public:
UnwrappedLineFormatter(const FormatStyle &Style, SourceManager &SourceMgr,
@@ -1639,6 +1641,8 @@ private:
encoding::Encoding Encoding;
};
+} // end anonymous namespace
+
tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex,
SourceManager &SourceMgr,
std::vector<CharSourceRange> Ranges) {
OpenPOWER on IntegriCloud