diff options
author | Mike Stump <mrs@apple.com> | 2009-09-09 15:08:12 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-09-09 15:08:12 +0000 |
commit | 1eb4433ac451dc16f4133a88af2d002ac26c58ef (patch) | |
tree | 07065b80cb7787bb7b9ffcb985196007a57e86f7 /include/clang/Analysis/Support/SaveAndRestore.h | |
parent | 79d39f92590cf2e91bf81486b02cd1156d13ca54 (diff) |
Remove tabs, and whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/Support/SaveAndRestore.h')
-rw-r--r-- | include/clang/Analysis/Support/SaveAndRestore.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Analysis/Support/SaveAndRestore.h b/include/clang/Analysis/Support/SaveAndRestore.h index f597fcba57..4720c22d99 100644 --- a/include/clang/Analysis/Support/SaveAndRestore.h +++ b/include/clang/Analysis/Support/SaveAndRestore.h @@ -16,7 +16,7 @@ #define LLVM_CLANG_ANALYSIS_SAVERESTORE namespace clang { - + // SaveAndRestore - A utility class that uses RAII to save and restore // the value of a variable. template<typename T> @@ -24,7 +24,7 @@ struct SaveAndRestore { SaveAndRestore(T& x) : X(x), old_value(x) {} ~SaveAndRestore() { X = old_value; } T get() { return old_value; } -private: +private: T& X; T old_value; }; @@ -39,6 +39,6 @@ private: bool& X; const bool old_value; }; - + } #endif |