r247476 - [Static Analyzer] Properly cash the configuration option for lambda support.
Gabor Horvath via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 11 14:19:39 PDT 2015
Author: xazax
Date: Fri Sep 11 16:19:39 2015
New Revision: 247476
URL: http://llvm.org/viewvc/llvm-project?rev=247476&view=rev
Log:
[Static Analyzer] Properly cash the configuration option for lambda support.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp?rev=247476&r1=247475&r2=247476&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp Fri Sep 11 16:19:39 2015
@@ -334,5 +334,7 @@ bool AnalyzerOptions::shouldConditionali
}
bool AnalyzerOptions::shouldInlineLambdas() {
- return getBooleanOption("inline-lambdas", /*Default=*/true);
+ if (!InlineLambdas.hasValue())
+ InlineLambdas = getBooleanOption("inline-lambdas", /*Default=*/true);
+ return InlineLambdas.getValue();
}
More information about the cfe-commits
mailing list