Home
last modified time | relevance | path

Searched refs:warn (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/llvm-project-15.0.7/lld/test/ELF/
H A Dwarn-backrefs.s11 # RUN: ld.lld --fatal-warnings --warn-backrefs %t1.o %t2.a -o /dev/null
15 # RUN: ld.lld --fatal-warnings --warn-backrefs %t1.lds -o /dev/null
18 ## Warn unless the archive is excluded by --warn-backrefs-exclude
21 # RUN: ld.lld --warn-backrefs --no-warn-backrefs %t2.a %t1.o -o /dev/null 2>&1 | count 0
23 # RUN: ld.lld --warn-backrefs --warn-backrefs-exclude='*3.a' %t2.a %t1.o -o /dev/null 2>&1 | FileCh…
24 # RUN: ld.lld --fatal-warnings --warn-backrefs --warn-backrefs-exclude='*2.a(*2.o)' %t2.a %t1.o -o …
25 # RUN: ld.lld --fatal-warnings --warn-backrefs --warn-backrefs-exclude '*2.a(*2.o)' \
26 # RUN: --warn-backrefs-exclude not_exist %t2.a %t1.o -o /dev/null
27 ## Without --warn-backrefs, --warn-backrefs-exclude is ignored.
32 # RUN: ld.lld --fatal-warnings --warn-backrefs %t2.lds -o /dev/null
[all …]
H A Dwarn-common.s3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common.s -o %t2.o
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common2.s -o %t3.o
6 ## Report multiple commons if warn-common is specified
7 # RUN: ld.lld --warn-common %t1.o %t2.o -o %t.out 2>&1 | FileCheck %s --check-prefix=WARN
10 # RUN: ld.lld --fatal-warnings --warn-common --no-warn-common %t1.o %t2.o -o %t.out
13 # RUN: ld.lld --warn-common %t1.o %t3.o -o %t.out 2>&1 | FileCheck %s --check-prefix=OVER
17 # RUN: ld.lld --warn-common %t3.o %t1.o -o %t.out 2>&1 | FileCheck %s --check-prefix=OVER
H A Dsilent-ignore.test11 RUN: -no-warn-mismatch \
16 RUN: -warn-execstack \
17 RUN: -warn-once \
18 RUN: -warn-shared-textrel \
H A Dwarn-unresolved-symbols.s12 ## --warn-unresolved-symbols should generate a warning
13 # RUN: ld.lld %t1.o -o %t5 --warn-unresolved-symbols 2>&1 | \
17 # RUN: ld.lld %t1.o -o %t5 --error-unresolved-symbols --warn-unresolved-symbols 2>&1 | \
19 # RUN: not ld.lld %t1.o -o /dev/null --warn-unresolved-symbols --error-unresolved-symbols 2>&1 | \
H A Dfatal-warnings.s3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common.s -o %t2.o
5 # RUN: ld.lld --warn-common %t1.o %t2.o -o /dev/null 2>&1 | \
9 # RUN: not ld.lld --warn-common --fatal-warnings %t1.o %t2.o -o /dev/null 2>&1 | \
/llvm-project-15.0.7/llvm/test/Verifier/
H A Dinvalid-warn-stack-size.ll2 define void @foo() "warn-stack-size"="42" { ret void }
3 define void @bar() "warn-stack-size"="-1" { ret void }
4 define void @baz() "warn-stack-size"="999999999999999999999" { ret void }
5 define void @qux() "warn-stack-size"="a lot lol" { ret void }
7 ; CHECK-NOT: "warn-stack-size" takes an unsigned integer: 42
8 ; CHECK: "warn-stack-size" takes an unsigned integer: -1
9 ; CHECK: "warn-stack-size" takes an unsigned integer: 999999999999999999999
10 ; CHECK: "warn-stack-size" takes an unsigned integer: a lot lol
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dwarn-missing-super.m10 // Root class, shouldn't warn
13 // Root class, shouldn't warn
36 [super dealloc]; // Shouldn't warn
39 [super finalize]; // Shouldn't warn
44 // CHECK: warn-missing-super.m:24:1: warning: method possibly missing a [super dealloc] call
48 // CHECK-GC: warn-missing-super.m:24:1: warning: method possibly missing a [super dealloc] call
49 // CHECK-GC: warn-missing-super.m:26:1: warning: method possibly missing a [super finalize] call
53 // CHECK-GC-ONLY: warn-missing-super.m:26:1: warning: method possibly missing a [super finalize] ca…
57 // CHECK-ARC: warn-missing-super.m:36:10: error: ARC forbids explicit message send of 'dealloc'
H A Dmethod-direct-arc.m20 [self directMethod]; // this should not warn
23 [self directMethod]; // this should not warn
24 [self anotherDirectMethod]; // this should not warn
36 [self directMethod]; // this should not warn
H A Dproperty-in-class-extension.m35 @property (readwrite, assign) NSObject *warn; property
40 - (NSObject *)warn; method in NSObject
48 @dynamic warn;
/llvm-project-15.0.7/clang/docs/analyzer/
H A Dcheckers.rst62 f(p); // warn
97 *p = 0; // warn
135 p = str; // warn
145 x = &y; // warn
218 if (x) // warn
245 return x; // warn
306 } // warn
371 x = 1; // warn
589 f(); // warn
1291 id x; // warn
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dwarn-stack.ll7 define void @nowarn() nounwind ssp "warn-stack-size"="80" {
14 ; CHECK: warning: stack frame size (88) exceeds limit (80) in function 'warn'
15 define void @warn() nounwind ssp "warn-stack-size"="80" {
22 ; Ensure that warn-stack-size also considers the size of the unsafe stack.
28 define void @warn_safestack() nounwind ssp safestack "warn-stack-size"="80" {
H A Dattr-dontcall.ll11 declare void @foo2() "dontcall-warn"="w"
17 declare void @foo3() "dontcall-warn"
24 ; CHECK: warning: call to foo2 marked "dontcall-warn": w
25 ; CHECK: warning: call to foo3 marked "dontcall-warn"{{$}}
/llvm-project-15.0.7/clang/test/Analysis/
H A DNewDelete-intersections.mm28 free(++p1); // no warn
32 free(p2); // no warn
34 int *p3 = (int *)malloc(sizeof(int)); // no warn
38 int j = *p4; // no warn
41 free(p5); // no warn
50 delete p2; // no warn
55 *p1 = 1; // no warn
H A Dsuperclass.m52 // Do not warn if UIViewController/*Responder/NSDocument is not our superclass
72 // Do not warn for the implementation in the superclass itself.
111 // Do not warn for methods were it shouldn't
115 // Do not warn if UIViewController is our superclass but we did call super
175 // Do warn for UIResponder subclasses that don't call super
185 // Do not warn for UIResponder subclasses that do the right thing
195 // Do warn for NSResponder subclasses that don't call super
206 // Do not warn for NSResponder subclasses that do the right thing
219 // Do warn for NSDocument subclasses that don't call super
230 // Do not warn for NSDocument subclasses that do the right thing
H A DMissingDealloc.m25 // Do not warn about missing -dealloc method. Not enough context to know
37 // Do not warn about missing -dealloc method. These properties are not
112 // Don't warn about iVars that are selectors.
133 // Don't warn about iVars that are IBOutlets.
177 // Don't warn for clases that aren't subclasses of NSObject
194 [DeallocingClass dealloc]; // FIXME: Should we warn on this specifically?
/llvm-project-15.0.7/clang/docs/analyzer/checkers/
H A Dseckeychainapi_example.m8 // warn: trying to free data which has not been allocated
18 // warn: data is not released
30 // warn: only call free if a non-NULL buffer was returned
42 // warn: release data before another call to the allocator
62 // warn: deallocator doesn't match the allocator
H A Ddealloc_example.m8 @implementation MyObject // warn: lacks 'dealloc'
15 @implementation MyObject // warn: does not send 'dealloc' to super
29 // warn: var was retained but wasn't released
43 // warn: var wasn't retained but was released
/llvm-project-15.0.7/clang/test/Sema/
H A Dwarn-self-assign-field.mm12 a_ += a_; // Shouldn't warn.
22 // Shouldn't warn.
36 // Shouldn't warn.
41 // This is a common pattern to silence "parameter unused". Shouldn't warn.
62 // Shouldn't warn.
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Dwarn-stack.ll7 define void @nowarn() nounwind ssp "frame-pointer"="all" "warn-stack-size"="80" {
15 ; CHECK: warning: stack frame size (92) exceeds limit (80) in function 'warn'
16 define void @warn() nounwind ssp "frame-pointer"="all" "warn-stack-size"="80" {
/llvm-project-15.0.7/lld/test/MachO/
H A Dinstall-name.s5 # RUN: %no-fatal-warnings-lld --warn-dylib-install-name -o %t.exec %t.o \
10 # RUN: %no-fatal-warnings-lld --warn-dylib-install-name -bundle -o %t.bundle %t.o \
19 # RUN: %lld -bundle --warn-dylib-install-name --no-warn-dylib-install-name \
28 # WARN: warning: -install_name foo: ignored, only has effect with -dylib [--warn-dylib-install-name]
/llvm-project-15.0.7/clang/test/Analysis/Inputs/
H A Dtaint-generic-config.yaml75 # mySink(x, 0, 1); // It will warn
76 # mySink(0, 1, y); // It will warn
77 # mySink(0, x, 1); // It won't warn
82 # myNamespace::mySink(x); // It will warn
88 # myAnotherNamespace::mySink(x); // It will warn
/llvm-project-15.0.7/compiler-rt/test/profile/Linux/
H A Dinstrprof-value-prof-warn.test1 …-mllvm -disable-vp=false -mllvm -vp-static-alloc=true -DSTRESS=1 -o %t.ir.warn %S/../Inputs/instr…
2 RUN: env LLVM_PROFILE_FILE=%t.ir.profraw LLVM_VP_MAX_NUM_VALS_PER_SITE=255 %run %t.ir.warn 2>&1 |F…
4 RUN: env LLVM_PROFILE_FILE=%t.ir.profraw LLVM_VP_MAX_NUM_VALS_PER_SITE=130 %run %t.ir.warn 2>&1 |F…
/llvm-project-15.0.7/llvm/test/Linker/
H A Dmodule-max-warn.ll1 ; RUN: llvm-link %s %p/Inputs/module-max-warn.ll -S -o - 2>&1 | FileCheck %s
3 …Warn': IDs have conflicting values ('i32 4' from {{.*}}/Inputs/module-max-warn.ll with 'i32 2' fro…
4 … Max': IDs have conflicting values ('i32 5' from {{.*}}/Inputs/module-max-warn.ll with 'i32 3' fro…
/llvm-project-15.0.7/llvm/utils/
H A Dupdate_mir_test_checks.py104 common.warn('Skipping unparseable RUN line: ' + l)
113 common.warn('Skipping non-llc RUN line: {}'.format(l), test_file=test)
116 common.warn('Skipping non-FileChecked RUN line: {}'.format(l),
222 common.warn(
235 common.warn('Function has no instructions to check: {}'.format(func_name),
305 common.warn("Skipping test which wasn't autogenerated by " +
311 common.warn("Skipping test which isn't autogenerated: " + test)
330 common.warn('No triple found: skipping file', test_file=test)
436 common.warn('Error processing file', test_file=test)
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dsuspicious-string-compare.rst14 if (!strcmp(...)) // Won't warn
15 if (strcmp(...) != 0) // Won't warn
45 When `true`, the check will warn on implicit comparison. `true` by default.
49 When `true`, the check will warn on logical not comparison. `false` by default.

12345678910>>...13