summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/virtualcall.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-10-10 17:55:40 +0000
committerJordan Rose <jordan_rose@apple.com>2012-10-10 17:55:40 +0000
commitd8665b3d1ae65ed6f603e4cf7ff7137c6ac3242c (patch)
tree14f20e2fd2a16f83513e9c52911c87e94cac6356 /clang/test/Analysis/virtualcall.cpp
parent85c8c81924710ffae33127082b15c80702f97acc (diff)
downloadbcm5719-llvm-d8665b3d1ae65ed6f603e4cf7ff7137c6ac3242c.tar.gz
bcm5719-llvm-d8665b3d1ae65ed6f603e4cf7ff7137c6ac3242c.zip
[analyzer] Don't run non-path-sensitive checks on system headers...
...but do run them on user headers. Previously, we were inconsistent here: non-path-sensitive checks on code /bodies/ were only run in the main source file, but checks on /declarations/ were run in /all/ headers. Neither of those is the behavior we want. Thanks to Sujit for pointing this out! <rdar://problem/12454226> llvm-svn: 165635
Diffstat (limited to 'clang/test/Analysis/virtualcall.cpp')
-rw-r--r--clang/test/Analysis/virtualcall.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Analysis/virtualcall.cpp b/clang/test/Analysis/virtualcall.cpp
index 6dfa2b40ef8..c3319b0ac54 100644
--- a/clang/test/Analysis/virtualcall.cpp
+++ b/clang/test/Analysis/virtualcall.cpp
@@ -51,3 +51,9 @@ int main() {
B *b;
C *c;
}
+
+#include "virtualcall.h"
+
+#define AS_SYSTEM
+#include "virtualcall.h"
+#undef AS_SYSTEM
OpenPOWER on IntegriCloud