r185295 - Put helper classes into anonymous namespace.
Craig Topper
craig.topper at gmail.com
Sun Jun 30 15:29:28 PDT 2013
Author: ctopper
Date: Sun Jun 30 17:29:28 2013
New Revision: 185295
URL: http://llvm.org/viewvc/llvm-project?rev=185295&view=rev
Log:
Put helper classes into anonymous namespace.
Modified:
cfe/trunk/lib/Format/Format.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=185295&r1=185294&r2=185295&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Sun Jun 30 17:29:28 2013
@@ -248,6 +248,8 @@ static unsigned getLengthToMatchingParen
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) {
More information about the cfe-commits
mailing list