Home
last modified time | relevance | path

Searched refs:conversion (Results 1 – 25 of 591) sorted by relevance

12345678910>>...24

/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dformat-strings-utf8.m15 // CHECK: <string>invalid conversion specifier &apos;\u25b9&apos;</string>
16 // CHECK: <string>invalid conversion specifier &apos;\u25b9&apos;</string>
17 // CHECK: <string>invalid conversion specifier &apos;\U00010348&apos;</string>
18 // CHECK: <string>invalid conversion specifier &apos;\U00010348&apos;</string>
19 // CHECK: <string>invalid conversion specifier &apos;\xe2&apos;</string>
20 // CHECK: <string>invalid conversion specifier &apos;\u25b9&apos;</string>
21 // CHECK: <string>invalid conversion specifier &apos;\u25b9&apos;</string>
24 // CHECK: <string>invalid conversion specifier &apos;\xe2&apos;</string>
25 // CHECK: <string>invalid conversion specifier &apos;\u25b9&apos;</string>
26 // CHECK: <string>invalid conversion specifier &apos;\u25b9&apos;</string>
[all …]
H A Dsigned-char-bool-conversion.m18 b = fl; // expected-warning {{implicit conversion from floating-point type 'float' to 'BOOL'}}
19 b = i; // expected-warning {{implicit conversion from integral type 'int' to 'BOOL'}}
38 bp.p = fl; // expected-warning {{implicit conversion from floating-point type 'float' to 'BOOL'}}
39 bp.p = i; // expected-warning {{implicit conversion from integral type 'int' to 'BOOL'}}
57 b = bf->signed_bf1; // expected-warning{{implicit conversion from integral type 'int' to 'BOOL'}}
58 b = bf->signed_bf2; // expected-warning{{implicit conversion from integral type 'int' to 'BOOL'}}
99 …BOOL b = i.i; // expected-warning{{implicit conversion from integral type 'unsigned int' to 'BOOL'…
111 b = b ?: i; // expected-warning {{implicit conversion from integral type 'int' to 'BOOL'}}
112 b = (b = i) // expected-warning {{implicit conversion from integral type 'int' to 'BOOL'}}
115 …b = b ?: (1 ? i : i); // expected-warning 2 {{implicit conversion from integral type 'int' to 'BOO…
[all …]
H A Dsign-conversion.m1 // RUN: %clang_cc1 -fsyntax-only -verify -Wsign-conversion %s
26 …[x setUint:sint]; // expected-warning {{implicit conversion changes signedness: 'int' to 'NSUInte…
27 …x.uint = sint; // expected-warning {{implicit conversion changes signedness: 'int' to 'NSUInteger'…
35 (void)((NSObject*)array[si]).hash; // expected-warning {{implicit conversion changes signedness: 'i…
37 (void)[((NSObject*)array[si]) hash]; // expected-warning {{implicit conversion changes signedness: …
38 (void)array[si]; // expected-warning {{implicit conversion changes signedness: 'int' to 'NSUInteger…
H A Dtransfer-boxed-string-nullability.m1 // RUN: %clang_cc1 -fblocks -fobjc-arc -Wnullable-to-nonnull-conversion -fsyntax-only -verify -Wno-…
2 // RUN: %clang_cc1 -fblocks -fobjc-arc -Wnullable-to-nonnull-conversion -fsyntax-only -verify -Wno-…
33 …// expected-warning@-7 {{implicit conversion from nullable pointer 'NSString * _Nullable' to non-n…
34 …// expected-warning@-7 {{implicit conversion from nullable pointer 'NSString * _Nullable' to non-n…
35 …// expected-warning@-5 {{implicit conversion from nullable pointer 'NSString * _Nullable' to non-n…
36 …// expected-warning@-5 {{implicit conversion from nullable pointer 'NSString * _Nullable' to non-n…
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dwarn-objc-literal-conversion.mm1 // RUN: %clang_cc1 -fsyntax-only -verify -Wobjc-literal-conversion %s
24 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
29 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
31 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
33 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
35 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
40 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
42 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
44 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
46 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates…
[all …]
H A Dconversion-ranking.mm21 // conversion of C* to B* is better than conversion of C* to A*.
29 // conversion of B* to A* is better than conversion of C* to A*
46 // A conversion to an a non-id object pointer type is better than a
47 // conversion to 'id'.
55 // A conversion to an a non-Class object pointer type is better than a
56 // conversion to 'Class'.
83 // A conversion to an a non-id object pointer type is better than a
84 // conversion to qualified 'id'.
H A Dobjcbridge-related-attribute.mm17 … must be explicitly converted to 'NSColor *'; use '+colorWithCGColor:' method for this conversion}}
18 …must be explicitly converted to 'NSColor *'; use '+colorWithCGColor:' method for this conversion}}
19 …must be explicitly converted to 'NSColor *'; use '+colorWithCGColor:' method for this conversion}}
23 …explicitly converted to 'CGColorRef' (aka 'CGColor *'); use '-CGColor' method for this conversion}}
24 …xplicitly converted to 'CGColorRef' (aka 'CGColor *'); use '-CGColor' method for this conversion}}
25 …explicitly converted to 'CGColorRef' (aka 'CGColor *'); use '-CGColor' method for this conversion}}
H A Dcomptypes-7.mm26 …obj = i; // expected-error {{incompatible integer to pointer conversion assigning to 'id' from 'in…
29 …obj_p = i; // expected-error {{incompatible integer to pointer conversion assigning to 'id<MyProto…
32 …obj_c = i; // expected-error {{incompatible integer to pointer conversion assigning to 'MyClass *'…
35 …obj_C = i; // expected-error {{incompatible integer to pointer conversion assigning to 'Class' fro…
38 …i = obj; // expected-error {{incompatible pointer to integer conversion assigning to 'int' from …
39 …i = obj_p; // expected-error {{incompatible pointer to integer conversion assigning to 'int' from …
40 …i = obj_c; // expected-error {{incompatible pointer to integer conversion assigning to 'int' from …
41 …i = obj_C; // expected-error {{incompatible pointer to integer conversion assigning to 'int' from …
/llvm-project-15.0.7/mlir/docs/
H A DDialectConversion.md12 * A [Conversion Target](#conversion-target)
19 conversion modes that may be selected from:
41 the given conversion target if a conversion were to be applied. This is
54 during the conversion process. The final operations generated by the conversion
82 An example conversion target is shown below:
189 conversion infrastructure.
247 argument during a [signature conversion](#region-signature-conversion).
275 [conversion pattern](#conversion-patterns) are not legal for the
299 /// Register a conversion function. A conversion function defines how a given
306 /// the conversion.
[all …]
/llvm-project-15.0.7/clang/test/Sema/
H A Dobjc-bool-constant-conversion.m15 …B = -1; // expected-warning{{implicit conversion from constant value -1 to 'BOOL'; the only well d…
16 …B = 0 - 1; // expected-warning{{implicit conversion from constant value -1 to 'BOOL'; the only wel…
17 …B = YES + YES; // expected-warning {{implicit conversion from constant value 2 to 'BOOL'; the only…
20 …B = B ? 2 : 2; // expected-warning 2 {{implicit conversion from constant value 2 to 'BOOL'; the on…
22 …BOOL Init = -1; // expected-warning{{implicit conversion from constant value -1 to 'BOOL'; the onl…
23 …BOOL Init2 = B ? 2 : 2; // expected-warning 2 {{implicit conversion from constant value 2 to 'BOOL…
26 …takesbool(43); // expected-warning {{implicit conversion from constant value 43 to 'BOOL'; the onl…
28 …BOOL OutOfRange = 400; // expected-warning{{implicit conversion from constant value 400 to 'BOOL';…
36 …bp.b = 43; // expected-warning {{implicit conversion from constant value 43 to 'BOOL'; the only we…
37 …[bp setB:43]; // expected-warning {{implicit conversion from constant value 43 to 'BOOL'; the only…
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/abseil/
H A Dduration-conversion-cast.rst1 .. title:: clang-tidy - abseil-duration-conversion-cast
3 abseil-duration-conversion-cast
6 Checks for casts of ``absl::Duration`` conversion functions, and recommends
7 the right conversion function instead.
17 // Suggested - Use the integer conversion function directly.
25 // Suggested - Use the integer conversion function directly.
30 as the conversion to integer could truncate. In practice, this is very rare,
H A Dduration-unnecessary-conversion.rst1 .. title:: clang-tidy - abseil-duration-unnecessary-conversion
3 abseil-duration-unnecessary-conversion
23 // Suggestion - Remove division and conversion
37 // Original - Integer division followed by conversion
40 // Suggestion - Remove division and conversion
51 // Suggestion - Remove unnecessary conversion
55 truncating operation if the value is not aligned to the scale of conversion.
/llvm-project-15.0.7/mlir/test/Transforms/
H A Dtest-legalize-type-conversion.mlir1 // RUN: mlir-opt %s -test-legalize-type-conversion -allow-unregistered-dialect -split-input-file -v…
5 …ected-error@below {{failed to materialize conversion for block argument #0 that remained live afte…
24 …elow {{failed to materialize conversion for result #0 of operation 'test.type_producer' that remai…
34 …elow {{failed to materialize conversion for result #0 of operation 'test.type_producer' that remai…
55 …elow {{failed to materialize conversion for result #0 of operation 'test.type_producer' that remai…
107 …ected-error@below {{failed to materialize conversion for block argument #0 that remained live afte…
/llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/
H A Dvec-conv-01.ll5 ; Test conversion of f64s to signed i64s.
14 ; Test conversion of f64s to unsigned i64s.
23 ; Test conversion of signed i64s to f64s.
32 ; Test conversion of unsigned i64s to f64s.
41 ; Test conversion of f64s to signed i32s, which must compile.
48 ; Test conversion of f64s to unsigned i32s, which must compile.
55 ; Test conversion of signed i32s to f64s, which must compile.
62 ; Test conversion of unsigned i32s to f64s, which must compile.
69 ; Test conversion of f32s to signed i64s, which must compile.
83 ; Test conversion of signed i64s to f32, which must compile.
[all …]
H A Dvec-strict-conv-01.ll20 ; Test conversion of f64s to signed i64s.
30 ; Test conversion of f64s to unsigned i64s.
40 ; Test conversion of signed i64s to f64s.
51 ; Test conversion of unsigned i64s to f64s.
62 ; Test conversion of f64s to signed i32s, which must compile.
70 ; Test conversion of f64s to unsigned i32s, which must compile.
78 ; Test conversion of signed i32s to f64s, which must compile.
87 ; Test conversion of unsigned i32s to f64s, which must compile.
96 ; Test conversion of f32s to signed i64s, which must compile.
112 ; Test conversion of signed i64s to f32, which must compile.
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/
H A Dimplicit-bool-conversion.rst1 .. title:: clang-tidy - readability-implicit-bool-conversion
3 readability-implicit-bool-conversion
12 ``bool`` conversion:
25 bool value = foo.getFoo(); // warning: implicit conversion int -> bool
67 In general, the following conversion types are checked:
69 - integer expression/literal to boolean (conversion from a single bit bitfield
77 - boolean expression/literal to integer (conversion from boolean to a single
93 - in case of negated expressions conversion to bool, the proposed replacement
99 ``static_cast`` is proposed to make it clear that a conversion is taking
105 - if the conversion is performed on type literals, an equivalent literal is
[all …]
H A Dimplicit-bool-cast.rst5 :http-equiv=refresh: 5;URL=../readability/implicit-bool-conversion.html
10 This check has been renamed to `readability-implicit-bool-conversion
11 <../readability/implicit-bool-conversion.html>`_.
/llvm-project-15.0.7/compiler-rt/test/builtins/timing/
H A Dtiming.h8 static double conversion = 0.0; in intervalInCycles() local
10 if( 0.0 == conversion ) in intervalInCycles()
23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.denom); in intervalInCycles()
26 return (double) rawTime * conversion; in intervalInCycles()
/llvm-project-15.0.7/clang/test/SemaOpenCL/
H A Dto_addr_builtin.cl49 …ssing non-generic address space pointer to to_global may cause dynamic conversion affecting perfor…
57 …sing non-generic address space pointer to to_private may cause dynamic conversion affecting perfor…
64 …assing non-generic address space pointer to to_local may cause dynamic conversion affecting perfor…
72 …ssing non-generic address space pointer to to_global may cause dynamic conversion affecting perfor…
79 …sing non-generic address space pointer to to_private may cause dynamic conversion affecting perfor…
88 …assing non-generic address space pointer to to_local may cause dynamic conversion affecting perfor…
95 …ssing non-generic address space pointer to to_global may cause dynamic conversion affecting perfor…
103 …sing non-generic address space pointer to to_private may cause dynamic conversion affecting perfor…
111 …assing non-generic address space pointer to to_local may cause dynamic conversion affecting perfor…
119 …ssing non-generic address space pointer to to_global may cause dynamic conversion affecting perfor…
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/MSP430/
H A Dshift-amount-threshold.ll4 ; Check the following conversion in TargetLowering::SimplifySetCC
20 ; Check the following conversion in TargetLowering::SimplifySetCC
36 ; Check the following conversion in DAGCombiner::SimplifySelectCC
56 ; Check the following conversion in DAGCombiner foldExtendedSignBitTest
75 ; Check the following conversion in DAGCombiner foldExtendedSignBitTest
94 ; Check the following conversion in DAGCombiner::foldSelectCCToShiftAnd
112 ; Check the following conversion in DAGCombiner::foldSelectCCToShiftAnd
132 ; Check the following conversion in DAGCombiner::SimplifySelectCC
151 ; Check the following conversion in TargetLowering::SimplifySetCC
166 ; Check the following conversion in TargetLowering::SimplifySetCC
[all …]
/llvm-project-15.0.7/clang/test/Modules/
H A Ddiagnostic-options-out-of-date.m3 // RUN: %clang_cc1 -Werror -Wno-conversion -fmodules-cache-path=%t -fmodules -fimplicit-module-maps…
5 // RUN: %clang_cc1 -Werror -Wno-conversion -emit-pch -fmodules-cache-path=%t -fmodules -fimplicit-m…
9 // RUN: %clang_cc1 -Werror -Wno-conversion -fmodules-cache-path=%t -fmodules -fimplicit-module-maps…
12 // RUN: %clang_cc1 -Werror -Wno-conversion -fmodules-cache-path=%t -fmodules -fimplicit-module-maps…
14 // RUN: %clang_cc1 -Werror -Wno-conversion -emit-pch -fmodules-cache-path=%t -fmodules -fimplicit-m…
18 // RUN: %clang_cc1 -Werror -Wno-conversion -fmodules-cache-path=%t -fmodules -fimplicit-module-maps…
/llvm-project-15.0.7/mlir/lib/Dialect/Func/Transforms/
H A DDecomposeCallGraphTypes.cpp23 for (auto &conversion : decomposeValueConversions) in decomposeValue() local
24 if (conversion(builder, loc, type, value, results)) in decomposeValue()
70 TypeConverter::SignatureConversion conversion(functionType.getNumInputs()); in matchAndRewrite() local
76 conversion.addInputs(argType.index(), decomposedTypes); in matchAndRewrite()
81 &conversion))) in matchAndRewrite()
90 op.setType(rewriter.getFunctionType(conversion.getConvertedTypes(), in matchAndRewrite()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/performance/
H A Dimplicit-conversion-in-loop.rst1 .. title:: clang-tidy - performance-implicit-conversion-in-loop
3 performance-implicit-conversion-in-loop
8 iterator. This means that an implicit conversion happens, which can for example
18 // that the compiler added a conversion, resulting in a copy of the vectors.
/llvm-project-15.0.7/bolt/test/X86/
H A Dcmov-conversion.s8 # RUN: --cmov-conversion --cmov-conversion-misprediction-threshold=-1 \
9 # RUN: --cmov-conversion-bias-threshold=-1 --print-all | FileCheck %s
35 # CHECK-LABEL: Binary Function "CmovInHotPath" after CMOV conversion
76 # CHECK-LABEL: Binary Function "CmovNotInHotPath" after CMOV conversion
121 # CHECK-LABEL: Binary Function "MaxIndex" after CMOV conversion
162 # CHECK-LABEL: Binary Function "MaxIndex_unpredictable" after CMOV conversion
203 # CHECK-LABEL: Binary Function "MaxValue" after CMOV conversion
244 # CHECK-LABEL: Binary Function "BinarySearch" after CMOV conversion
270 # CHECK-LABEL: Binary Function "Transform" after CMOV conversion
310 # CHECK-LABEL: Binary Function "test_cmov_memoperand" after CMOV conversion
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cert/
H A Derr34-c.rst6 This check flags calls to string-to-number conversion functions that do not
7 verify the validity of the conversion, such as ``atoi()`` or ``scanf()``. It
8 does not flag calls to ``strtol()``, or other, related conversion functions that
20 not report conversion errors; consider using 'strtol' instead. */

12345678910>>...24