projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8a5024
)
Put helper classes into anonymous namespace.
author
Craig Topper
<craig.topper@gmail.com>
Sun, 30 Jun 2013 22:29:28 +0000
(22:29 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sun, 30 Jun 2013 22:29:28 +0000
(22:29 +0000)
llvm-svn: 185295
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
7d6bc14
..
7b9950a
100644
(file)
--- 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) {