mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Put helper classes into anonymous namespace.
llvm-svn: 185295
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user