diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-01 20:58:01 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-01 20:58:01 +0000 |
commit | c2b914fb6fed213a7e7d9847e543f1e7f94d852d (patch) | |
tree | 8235e899527bd9e4308b6b394a14b7a2f10d9265 /lib/Rewrite/Core | |
parent | bda07ace55e40bd1a620051156fa9b13ad3936aa (diff) |
Make helper classes anonymous. Make helper functions static instead of private members so the anonymous class doesn't leak out.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/Core')
-rw-r--r-- | lib/Rewrite/Core/Rewriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Rewrite/Core/Rewriter.cpp b/lib/Rewrite/Core/Rewriter.cpp index 37081881ed..6fad5dd515 100644 --- a/lib/Rewrite/Core/Rewriter.cpp +++ b/lib/Rewrite/Core/Rewriter.cpp @@ -418,6 +418,7 @@ bool Rewriter::IncreaseIndentation(CharSourceRange range, return false; } +namespace { // A wrapper for a file stream that atomically overwrites the target. // // Creates a file output stream for a temporary file in the constructor, @@ -472,6 +473,7 @@ private: OwningPtr<llvm::raw_fd_ostream> FileStream; bool &AllWritten; }; +} // end anonymous namespace bool Rewriter::overwriteChangedFiles() { bool AllWritten = true; |