diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-10-02 20:42:16 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-10-02 20:42:16 +0000 |
commit | 48d05e6d776f4b68f3db4016eb5680ac041c2b7d (patch) | |
tree | 890f115edc54ac794b03e12e1955330d74a545ea /include/clang/StaticAnalyzer/Core/AnalyzerOptions.h | |
parent | 94bb74cef72a33d77c5d6739abfc0840c781eb8e (diff) |
Refactor clients of AnalyzerOptions::getBooleanOption() to have
an intermediate helper method to query and populate the Optional value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/AnalyzerOptions.h')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/AnalyzerOptions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h index 091155ca60..4c11a675af 100644 --- a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -194,6 +194,10 @@ private: /// If an option value is not provided, returns the given \p DefaultVal. bool getBooleanOption(StringRef Name, bool DefaultVal); + /// Variant that accepts a Optional value to cache the result. + bool getBooleanOption(llvm::Optional<bool> &V, StringRef Name, + bool DefaultVal); + /// Interprets an option's string value as an integer value. int getOptionAsInteger(llvm::StringRef Name, int DefaultVal); |