forked from OSchip/llvm-project
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
This commit is contained in:
parent
575037f0de
commit
66a34a6a45
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue