aboutsummaryrefslogtreecommitdiff
path: root/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-09-10 21:54:24 +0000
committerJordan Rose <jordan_rose@apple.com>2012-09-10 21:54:24 +0000
commit978869aa6e31a4bc6afdf5446ffb717aad3f7d97 (patch)
tree6fd3ecd48775d2756cec1a438e174022e0c0d95f /include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
parent81fb50e8b120fc95dc0245b4112972d4d7cca3b5 (diff)
[analyzer] Make the defaults explicit for each of the new config options.
Also, document both new inlining options in IPA.txt. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/AnalyzerOptions.h')
-rw-r--r--include/clang/StaticAnalyzer/Core/AnalyzerOptions.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
index 3065098695..eb3f8e4271 100644
--- a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
+++ b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
@@ -169,11 +169,20 @@ private:
/// Controls which C++ member functions will be considered for inlining.
CXXInlineableMemberKind CXXMemberInliningMode;
+ /// \sa includeTemporaryDtorsInCFG
llvm::Optional<bool> IncludeTemporaryDtorsInCFG;
+
+ /// \sa mayInlineCXXStandardLibrary
llvm::Optional<bool> InlineCXXStandardLibrary;
+
+ /// \sa mayInlineTemplateFunctions
llvm::Optional<bool> InlineTemplateFunctions;
- bool getBooleanOption(StringRef Name, bool DefaultVal = false) const;
+ /// Interprets an option's string value as a boolean.
+ ///
+ /// 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;
public:
/// Returns the option controlling which C++ member functions will be
@@ -187,8 +196,8 @@ public:
/// 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. Any
- /// non-empty value is considered to be 'true'.
+ /// This is controlled by the 'cfg-temporary-dtors' config option, which
+ /// accepts the values "true" and "false".
bool includeTemporaryDtorsInCFG() const;
/// Returns whether or not C++ standard library functions may be considered