aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/Support/SaveAndRestore.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Analysis/Support/SaveAndRestore.h')
-rw-r--r--include/clang/Analysis/Support/SaveAndRestore.h6
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