diff options
author | Anna Zaks <ganna@apple.com> | 2013-02-08 23:55:50 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-02-08 23:55:50 +0000 |
commit | adecec39481f925701e63d7fe3b8bf02dd7ddf01 (patch) | |
tree | c28d72c73fb8b614210a48ba3155c8c4aab10652 /lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp | |
parent | 722cd9e3c0142948b9eb3190211dbc0dd4da4105 (diff) |
[analyzer] Move DefaultBool so that all checkers can share it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp b/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp index 43f1eb7a54..7ef13ab538 100644 --- a/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp +++ b/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp @@ -36,13 +36,6 @@ static bool isArc4RandomAvailable(const ASTContext &Ctx) { } namespace { -struct DefaultBool { - bool val; - DefaultBool() : val(false) {} - operator bool() const { return val; } - DefaultBool &operator=(bool b) { val = b; return *this; } -}; - struct ChecksFilter { DefaultBool check_gets; DefaultBool check_getpw; |