]> granicus.if.org Git - clang/commitdiff
[Static Analyzer] Properly cash the configuration option for lambda support.
authorGabor Horvath <xazax.hun@gmail.com>
Fri, 11 Sep 2015 21:19:39 +0000 (21:19 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Fri, 11 Sep 2015 21:19:39 +0000 (21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247476 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/AnalyzerOptions.cpp

index 8b31a0db53198ee18c1447782dd6c5fe24e1f02a..bf8369ea35fe2c9bd49977d7dd8cc23acd5913a8 100644 (file)
@@ -334,5 +334,7 @@ bool AnalyzerOptions::shouldConditionalizeStaticInitializers() {
 }
 
 bool AnalyzerOptions::shouldInlineLambdas() {
-  return getBooleanOption("inline-lambdas", /*Default=*/true);
+  if (!InlineLambdas.hasValue())
+    InlineLambdas = getBooleanOption("inline-lambdas", /*Default=*/true);
+  return InlineLambdas.getValue();
 }