summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-12-07 22:26:14 +0000
committerTed Kremenek <kremenek@apple.com>2009-12-07 22:26:14 +0000
commit7bea9a1672024457b195ccc440fb5e11f32da0e1 (patch)
tree1aca57e67e0e0a2ceb26e8bd1fa837575e6792cd /clang/lib/Driver/Tools.cpp
parent6818991d7165f68fe196922d9e5c6648dd57cc47 (diff)
downloadbcm5719-llvm-7bea9a1672024457b195ccc440fb5e11f32da0e1.tar.gz
bcm5719-llvm-7bea9a1672024457b195ccc440fb5e11f32da0e1.zip
Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.
llvm-svn: 90812
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index b10ad1e1227..a89806a68e6 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -647,6 +647,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// Enable region store model by default.
CmdArgs.push_back("-analyzer-store=region");
+ // Treat blocks as analysis entry points.
+ CmdArgs.push_back("-analyzer-opt-analyze-nested-blocks");
+
// Add default argument set.
if (!Args.hasArg(options::OPT__analyzer_no_default_checks)) {
CmdArgs.push_back("-warn-dead-stores");
OpenPOWER on IntegriCloud