summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/idempotent-operations.c
diff options
context:
space:
mode:
authorTom Care <tcare@apple.com>2010-07-16 20:41:41 +0000
committerTom Care <tcare@apple.com>2010-07-16 20:41:41 +0000
commit826e6b40231e3932a802e19f9429337dc7e121cc (patch)
treed8155de320d8029b083373b452c13813cb0fd351 /clang/test/Analysis/idempotent-operations.c
parentfee4dafbd049fe23c72129f44f70cc6414aab0fd (diff)
downloadbcm5719-llvm-826e6b40231e3932a802e19f9429337dc7e121cc.tar.gz
bcm5719-llvm-826e6b40231e3932a802e19f9429337dc7e121cc.zip
Improved false positive rate for the idempotent operations checker and moved it into the default path-sensitive analysis options.
- Added checks for static local variables, self assigned parameters, and truncating/extending self assignments - Removed command line option (now default with --analyze) - Updated test cases to pass with idempotent operation warnings llvm-svn: 108550
Diffstat (limited to 'clang/test/Analysis/idempotent-operations.c')
-rw-r--r--clang/test/Analysis/idempotent-operations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/idempotent-operations.c b/clang/test/Analysis/idempotent-operations.c
index 9cef08edc43..72adb8ef25c 100644
--- a/clang/test/Analysis/idempotent-operations.c
+++ b/clang/test/Analysis/idempotent-operations.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-idempotent-operation -analyzer-store=region -analyzer-constraints=range -fblocks -verify -analyzer-opt-analyze-nested-blocks -analyzer-check-objc-mem -verify %s
+// RUN: %clang_cc1 -analyze -analyzer-store=region -analyzer-constraints=range -fblocks -verify -analyzer-opt-analyze-nested-blocks -analyzer-check-objc-mem -verify %s
// Basic tests
OpenPOWER on IntegriCloud