diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-10-01 18:28:19 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-10-01 18:28:19 +0000 |
commit | 622b6fb0a1d280c16e135c7e427b79cafffbde1f (patch) | |
tree | ed546fdae1b950bb96b131078813e1ca63e05f3b /include/clang/StaticAnalyzer/Core/AnalyzerOptions.h | |
parent | 43e8ef0b90dffcf9bda4fc2d3e6b21feb1e15bfb (diff) |
Have AnalyzerOptions::getBooleanOption() stick the matching config
string in the config table so that it can be dumped as part of the
config dumper. Add a test to show that these options are sticking
and can be cross-checked using FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/AnalyzerOptions.h')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/AnalyzerOptions.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h index 7657736c2b..d6dee64e70 100644 --- a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -192,7 +192,7 @@ private: /// /// Accepts the strings "true" and "false". /// If an option value is not provided, returns the given \p DefaultVal. - bool getBooleanOption(StringRef Name, bool DefaultVal) const; + bool getBooleanOption(StringRef Name, bool DefaultVal); /// Interprets an option's string value as an integer value. int getOptionAsInteger(llvm::StringRef Name, int DefaultVal) const; @@ -207,27 +207,27 @@ public: bool mayInlineCXXMemberFunction(CXXInlineableMemberKind K) const; /// Returns true if ObjectiveC inlining is enabled, false otherwise. - bool mayInlineObjCMethod() const; + bool mayInlineObjCMethod(); /// Returns whether or not the destructors for C++ temporary objects should /// be included in the CFG. /// /// This is controlled by the 'cfg-temporary-dtors' config option, which /// accepts the values "true" and "false". - bool includeTemporaryDtorsInCFG() const; + bool includeTemporaryDtorsInCFG(); /// Returns whether or not C++ standard library functions may be considered /// for inlining. /// /// This is controlled by the 'c++-stdlib-inlining' config option, which /// accepts the values "true" and "false". - bool mayInlineCXXStandardLibrary() const; + bool mayInlineCXXStandardLibrary(); /// Returns whether or not templated functions may be considered for inlining. /// /// This is controlled by the 'c++-template-inlining' config option, which /// accepts the values "true" and "false". - bool mayInlineTemplateFunctions() const; + bool mayInlineTemplateFunctions(); /// Returns whether or not paths that go through null returns should be /// suppressed. @@ -237,7 +237,7 @@ public: /// /// This is controlled by the 'suppress-null-return-paths' config option, /// which accepts the values "true" and "false". - bool shouldPruneNullReturnPaths() const; + bool shouldPruneNullReturnPaths(); // Returns the size of the functions (in basic blocks), which should be // considered to be small enough to always inline. @@ -247,7 +247,7 @@ public: /// Returns true if the analyzer engine should synthesize fake bodies /// for well-known functions. - bool shouldSynthesizeBodies() const; + bool shouldSynthesizeBodies(); public: AnalyzerOptions() : CXXMemberInliningMode() { |