diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-10-02 20:31:56 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-10-02 20:31:56 +0000 |
commit | 94bb74cef72a33d77c5d6739abfc0840c781eb8e (patch) | |
tree | 5db9d2c02c1aae532b301917c03b7224d5dfd2a8 /include/clang/StaticAnalyzer/Core/AnalyzerOptions.h | |
parent | 9e28fe60bbfa5de196ce4aa396210bf10fc5c266 (diff) |
Tweak AnalyzerOptions::getOptionAsInteger() to populate the string
table, making it printable with the ConfigDump checker. Along the
way, fix a really serious bug where the value was getting parsed
from the string in code that was in an assert() call. This means
in a Release-Asserts build this code wouldn't work as expected.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165041 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, 2 insertions, 2 deletions
diff --git a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h index 852f8bb9c5..091155ca60 100644 --- a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -195,7 +195,7 @@ private: bool getBooleanOption(StringRef Name, bool DefaultVal); /// Interprets an option's string value as an integer value. - int getOptionAsInteger(llvm::StringRef Name, int DefaultVal) const; + int getOptionAsInteger(llvm::StringRef Name, int DefaultVal); public: /// Returns the option controlling which C++ member functions will be @@ -243,7 +243,7 @@ public: // considered to be small enough to always inline. // // This is controlled by "ipa-always-inline-size" analyzer-config option. - unsigned getAlwaysInlineSize() const; + unsigned getAlwaysInlineSize(); /// Returns true if the analyzer engine should synthesize fake bodies /// for well-known functions. |