summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-09-12 01:11:10 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-09-12 01:11:10 +0000
commit66a34a6a45019a54d84e9c5a06c4498e56f13a40 (patch)
tree6266063bb26f81c7dc56d82c0d733d3c13a19c94 /clang/test
parent575037f0deb35858ed8b248ba67aa2418ba8b4ec (diff)
downloadbcm5719-llvm-66a34a6a45019a54d84e9c5a06c4498e56f13a40.tar.gz
bcm5719-llvm-66a34a6a45019a54d84e9c5a06c4498e56f13a40.zip
Adjust some analyzer tests to place widely shared inputs inside of an
'Inputs' subdirectory. The general desire has been to have essentially all of the non-test input files live in such directories, with some exceptions for obvious and common patterns like 'foo.c' using 'foo.h'. This came up because our distributed test runner couldn't find some of the headers, for example with stl.cpp. No functionality changed, just shuffling around here. llvm-svn: 163674
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Analysis/Inputs/system-header-simulator-cxx.h (renamed from clang/test/Analysis/system-header-simulator-cxx.h)0
-rw-r--r--clang/test/Analysis/Inputs/system-header-simulator-objc.h (renamed from clang/test/Analysis/system-header-simulator-objc.h)0
-rw-r--r--clang/test/Analysis/Inputs/system-header-simulator.h (renamed from clang/test/Analysis/system-header-simulator.h)0
-rw-r--r--clang/test/Analysis/coverage.c2
-rw-r--r--clang/test/Analysis/global-region-invalidation.c2
-rw-r--r--clang/test/Analysis/inlining/stl.cpp2
-rw-r--r--clang/test/Analysis/malloc-interprocedural.c2
-rw-r--r--clang/test/Analysis/malloc.c2
-rw-r--r--clang/test/Analysis/malloc.m2
-rw-r--r--clang/test/Analysis/malloc.mm4
10 files changed, 8 insertions, 8 deletions
diff --git a/clang/test/Analysis/system-header-simulator-cxx.h b/clang/test/Analysis/Inputs/system-header-simulator-cxx.h
index e762d0a1bdf..e762d0a1bdf 100644
--- a/clang/test/Analysis/system-header-simulator-cxx.h
+++ b/clang/test/Analysis/Inputs/system-header-simulator-cxx.h
diff --git a/clang/test/Analysis/system-header-simulator-objc.h b/clang/test/Analysis/Inputs/system-header-simulator-objc.h
index a647b374040..a647b374040 100644
--- a/clang/test/Analysis/system-header-simulator-objc.h
+++ b/clang/test/Analysis/Inputs/system-header-simulator-objc.h
diff --git a/clang/test/Analysis/system-header-simulator.h b/clang/test/Analysis/Inputs/system-header-simulator.h
index 5790fb9cff4..5790fb9cff4 100644
--- a/clang/test/Analysis/system-header-simulator.h
+++ b/clang/test/Analysis/Inputs/system-header-simulator.h
diff --git a/clang/test/Analysis/coverage.c b/clang/test/Analysis/coverage.c
index 811691391eb..66f0a5e385b 100644
--- a/clang/test/Analysis/coverage.c
+++ b/clang/test/Analysis/coverage.c
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc -analyzer-store=region -analyzer-max-loop 4 -verify %s
-#include "system-header-simulator.h"
+#include "Inputs/system-header-simulator.h"
typedef __typeof(sizeof(int)) size_t;
void *malloc(size_t);
diff --git a/clang/test/Analysis/global-region-invalidation.c b/clang/test/Analysis/global-region-invalidation.c
index ee6b55c7960..2d64b49a8ba 100644
--- a/clang/test/Analysis/global-region-invalidation.c
+++ b/clang/test/Analysis/global-region-invalidation.c
@@ -3,7 +3,7 @@
void clang_analyzer_eval(int);
// Note, we do need to include headers here, since the analyzer checks if the function declaration is located in a system header.
-#include "system-header-simulator.h"
+#include "Inputs/system-header-simulator.h"
// Test that system header does not invalidate the internal global.
int size_rdar9373039 = 1;
diff --git a/clang/test/Analysis/inlining/stl.cpp b/clang/test/Analysis/inlining/stl.cpp
index 56670a0f16d..cec782151c9 100644
--- a/clang/test/Analysis/inlining/stl.cpp
+++ b/clang/test/Analysis/inlining/stl.cpp
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,debug.ExprInspection -analyzer-ipa=dynamic -analyzer-config c++-stdlib-inlining=false -verify %s
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,debug.ExprInspection -analyzer-ipa=dynamic -analyzer-config c++-stdlib-inlining=true -DINLINE=1 -verify %s
-#include "../system-header-simulator-cxx.h"
+#include "../Inputs/system-header-simulator-cxx.h"
void clang_analyzer_eval(bool);
diff --git a/clang/test/Analysis/malloc-interprocedural.c b/clang/test/Analysis/malloc-interprocedural.c
index c804219eb4d..0ab3a715585 100644
--- a/clang/test/Analysis/malloc-interprocedural.c
+++ b/clang/test/Analysis/malloc-interprocedural.c
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=unix.Malloc -analyzer-inline-max-stack-depth=5 -analyzer-inline-max-function-size=6 -verify %s
-#include "system-header-simulator.h"
+#include "Inputs/system-header-simulator.h"
typedef __typeof(sizeof(int)) size_t;
void *malloc(size_t);
diff --git a/clang/test/Analysis/malloc.c b/clang/test/Analysis/malloc.c
index fe99fa10d68..52a79243ce4 100644
--- a/clang/test/Analysis/malloc.c
+++ b/clang/test/Analysis/malloc.c
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.deadcode.UnreachableCode,alpha.core.CastSize,unix.Malloc,debug.ExprInspection -analyzer-store=region -verify %s
-#include "system-header-simulator.h"
+#include "Inputs/system-header-simulator.h"
void clang_analyzer_eval(int);
diff --git a/clang/test/Analysis/malloc.m b/clang/test/Analysis/malloc.m
index 08206f3bf14..21d2dafa38b 100644
--- a/clang/test/Analysis/malloc.m
+++ b/clang/test/Analysis/malloc.m
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc -analyzer-store=region -verify -Wno-objc-root-class -fblocks %s
-#include "system-header-simulator-objc.h"
+#include "Inputs/system-header-simulator-objc.h"
@class NSString;
typedef __typeof(sizeof(int)) size_t;
diff --git a/clang/test/Analysis/malloc.mm b/clang/test/Analysis/malloc.mm
index 7a9d881b151..b5a1aeb12b8 100644
--- a/clang/test/Analysis/malloc.mm
+++ b/clang/test/Analysis/malloc.mm
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc -analyzer-store=region -verify -fblocks %s
-#include "system-header-simulator-objc.h"
+#include "Inputs/system-header-simulator-objc.h"
typedef __typeof(sizeof(int)) size_t;
void *malloc(size_t);
@@ -221,4 +221,4 @@ void foo(NSPointerArray* pointerArray) {
void noCrashOnVariableArgumentSelector() {
NSMutableString *myString = [NSMutableString stringWithString:@"some text"];
[myString appendFormat:@"some text = %d", 3];
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud