Home
last modified time | relevance | path

Searched full:explicit (Results 1 – 25 of 4783) sorted by relevance

12345678910>>...192

/llvm-project/lld/test/MachO/
H A Dobjc-selrefs.s4 # RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %t/explicit-selrefs-1.s -o %t/explicit-selrefs-1.o
5 # RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %t/explicit-selrefs-2.s -o %t/explicit-selrefs-2.o
8 # RUN: %lld -dylib -arch arm64 -lSystem -o %t/explicit-only-no-icf \
9 # RUN: %t/explicit-selrefs-1.o %t/explicit-selrefs-2.o -no_fixup_chains
10 # RUN: llvm-otool -vs __DATA __objc_selrefs %t/explicit-only-no-icf | \
11 # RUN: FileCheck %s --check-prefix=EXPLICIT-NO-ICF
15 # RUN: %lld -dylib -arch arm64 -lSystem -o %t/explicit
[all...]
/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A Ddefault.verify.cpp15 // explicit(see-below) constexpr tuple();
24 struct Explicit { struct
25 explicit Explicit() = default;
31 std::tuple<Explicit> test3() { return {}; } // expected-error 1 {{chosen constructor is explicit in… in test3()
34 std::tuple<Explicit, Implicit> test5() { return {}; } // expected-error 1 {{chosen constructor is e… in test5()
35 std::tuple<Implicit, Explicit> test6() { return {}; } // expected-error 1 {{chosen constructor is e… in test6()
36 std::tuple<Explicit, Explicit> test7() { return {}; } // expected-error 1 {{chosen constructor is e… in test7()
39 std::tuple<Implicit, Implicit, Explicit> test9() { return {}; } // expected-error 1 {{chosen constr… in test9()
40 std::tuple<Implicit, Explicit, Implicit> test10() { return {}; } // expected-error 1 {{chosen const… in test10()
41 std::tuple<Implicit, Explicit, Explicit> test11() { return {}; } // expected-error 1 {{chosen const… in test11()
[all …]
/llvm-project/clang/lib/Headers/
H A Dmodule.modulemap11 explicit module altivec {
16 explicit module arm {
19 explicit module acle {
24 explicit module neon {
31 explicit module sve {
38 explicit module intel {
71 explicit module mm_malloc {
77 explicit module cpuid {
82 explicit module mmx {
86 explicit modul
[all...]
/llvm-project/clang/test/Modules/Inputs/DependsOnModule.framework/Modules/
H A Dmodule.modulemap7 explicit module CXX {
11 explicit module NotCXX {
15 explicit module NotObjC {
19 explicit module CustomReq1 {
22 explicit module CustomReq2 {
25 explicit module Coroutines {
29 explicit module NotCoroutines {
33 explicit framework module SubFramework {
40 explicit module CXX11 {
43 explicit module CXX14 {
[all …]
/llvm-project/polly/lib/External/isl/
H A Disl_multi_no_explicit_domain.c9 /* These versions of the explicit domain functions are used
10 * when the multi expression cannot have an explicit domain.
17 /* Does "multi" have an explicit domain?
26 /* Initialize the explicit domain of "multi".
27 * "multi" cannot have an explicit domain, so this function is never called.
35 /* Intersect the domain of "dst" with the explicit domain of "src".
36 * "src" cannot have an explicit domain, so this function is never called.
44 /* Set the explicit domain of "dst" to that of "src".
45 * "src" and "dst" cannot have an explicit domain,
62 * of the explicit domains of "src1" and "src2".
[all …]
/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DSymbolRecord.h31 explicit SymbolRecord(SymbolRecordKind Kind) : Kind(Kind) {} in SymbolRecord()
45 explicit ProcSym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in ProcSym()
71 explicit Thunk32Sym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in Thunk32Sym()
91 explicit TrampolineSym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in TrampolineSym()
108 explicit SectionSym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in SectionSym()
125 explicit CoffGroupSym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in CoffGroupSym()
140 explicit ScopeEndSym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in ScopeEndSym()
149 explicit JumpTableSym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in JumpTableSym()
170 explicit CallerSym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in CallerSym()
355 explicit InlineSiteSym(SymbolRecordKind Kind) : SymbolRecord(Kind) {} in InlineSiteSym()
[all …]
/llvm-project/clang/test/PCH/
H A Dcxx-explicit-specifier.cpp15 explicit(((void)Y{}, true)) T(A &&a) {} in T()
31 //CHECK: explicit(((void)char{} , true))
41 explicit A(int);
42 explicit(false) operator bool();
43 explicit(true) operator B();
48 //expected-note-re@-7+ {{explicit constructor is not a candidate{{$}}}}
50 //expected-note@-7+ {{explicit conversion function is not a candidate (explicit specifier evaluates…
52 //CHECK: explicit{{ +}}A(
53 //CHECK-NEXT: explicit(false){{ +}}operator
54 //CHECK-NEXT: explicit(true){{ +}}operator
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/google/
H A Dexplicit-constructor.cpp1 // RUN: %check_clang_tidy %s google-explicit-constructor %t
39 explicit A(void *x) {} in A()
40 explicit A(void *x, void *y) {} in A()
41 explicit operator bool() const { return true; } in operator bool()
45 explicit A(const A& a) {} in A()
46 …[@LINE-1]]:12: warning: copy constructor should not be declared explicit [google-explicit-construc…
50 …ngle-argument constructors must be marked explicit to avoid unintentional implicit conversions [go…
51 // CHECK-FIXES: {{^ }}explicit A(int x1);
54 …ble with a single argument must be marked explicit to avoid unintentional implicit conversions [go…
55 // CHECK-FIXES: {{^ }}explicit A(double x2, double y = 3.14) {}
[all …]
H A Dexplicit-constructor-cxx20.cpp1 // RUN: %check_clang_tidy %s google-explicit-constructor %t -std=c++20-or-later
10 explicit(true) A(int);
14 explicit(false) B(int);
18 explicit(ConstTrue) C(int);
22 explicit(ConstFalse) D(int);
23 …E-1]]:24: warning: single-argument constructors explicit expression evaluates to 'false' [google-e…
28 explicit(true) E(int);
33 explicit(false) F(int);
38 explicit(ConstTrue) G(int);
43 explicit(ConstFalse) H(int);
[all …]
/llvm-project/clang/test/ARCMT/Inputs/
H A Dmodule.modulemap29 explicit module b { header "macros_top_b.h" }
30 explicit module c { header "macros_top_c.h" }
39 explicit module undef {
50 explicit module sub {
58 explicit module sub {
77 explicit module Decl { header "decl.h" }
78 explicit module Decl2 { header "decl2.h" }
79 explicit module Def { header "def.h" }
84 explicit module Explicit { header "redecl-merge-top-explicit.h" }
100 explicit module prefix {
[all …]
/llvm-project/flang/test/Semantics/
H A Dimplicit14.f904 procedure(explicit), pointer, nopass :: p
14 function explicit function
15 character(:), allocatable :: explicit local
16 explicit = "abc"
25 procedure(explicit), pointer :: p3
31 …licit interface may not be associated with procedure designator 'explicit' with explicit interface…
32 p0 => explicit
36 …!ERROR: Function pointer 'p1' associated with incompatible function designator 'explicit': functio…
37 p1 => explicit
41 …!ERROR: Function pointer 'p2' associated with incompatible function designator 'explicit': functio…
[all …]
H A Dresolve45.f902 !ERROR: The function result variable 'f1' may not have an explicit SAVE attribute
4 !ERROR: The dummy argument 'x' may not have an explicit SAVE attribute
7 !ERROR: The dummy argument 'y' may not have an explicit SAVE attribute
12 !ERROR: The entity 'f2' with an explicit SAVE attribute must be a variable, procedure pointer, or C…
15 !ERROR: The function result variable 'r' may not have an explicit SAVE attribute
17 !ERROR: The dummy argument 'x' may not have an explicit SAVE attribute
20 !ERROR: The dummy argument 'y' may not have an explicit SAVE attribute
32 !ERROR: The dummy argument 'x' may not have an explicit SAVE attribute
34 …!ERROR: The entity 'y' with an explicit SAVE attribute must be a variable, procedure pointer, or C…
39 !WARNING: Explicit SAVE of 'z' is redundant due to global SAVE statement
[all …]
/llvm-project/clang/test/Modules/
H A Ddependency-gen.modulemap7 …cy-file - -MT explicit.pcm -o %t/explicit.pcm -fmodules-cache-path=%t -fmodule-map-file-home-is-cw…
9 …+ /dev/null -fmodule-file=%t/explicit.pcm -MT main.o -fsyntax-only -dependency-file - | FileCheck …
27 // For an explicit use of a module via -fmodule-file=, the other module maps
31 // EXPLICIT: {{^}}explicit.pcm:
32 // EXPLICIT-NOT: dependency-gen-
33 // EXPLICIT: {{.*[/\\]}}dependency-gen.modulemap
34 // EXPLICIT-NOT: dependency-gen-
35 // EXPLICIT: base.pcm
36 // EXPLICIT-NOT: dependency-gen-
37 // EXPLICIT: {{ |\.[/\\]}}Inputs{{[/\\]}}dependency-gen.h
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/
H A Dnolintbeginend.cpp1 // RUN: %check_clang_tidy %s google-explicit-constructor,clang-diagnostic-unused-variable,cppcoreguidelines-avoid-c-arrays,modernize-avoid-c-arrays %t -- -extra-arg=-Wunused-variable
4 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit
31 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
33 // NOLINTBEGIN(google-explicit-constructor)
35 // NOLINTEND(google-explicit-constructor)
39 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
48 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
51 // NOLINTBEGIN(some-other-check, google-explicit-constructor)
53 // NOLINTEND(some-other-check, google-explicit-constructor)
55 // NOLINTBEGIN(google-explicit
[all...]
H A Dnolint.cpp2 // RUN: %check_clang_tidy %s google-explicit-constructor,clang-diagnostic-unused-variable,clang-analyzer-core.UndefinedBinaryOperatorResult,modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays,cppcoreguidelines-pro-type-member-init %t -- -extra-arg=-Wunused-variable -- -I%S/Inputs/nolint
13 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit
18 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: single-argument constructors must be marked explicit
21 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
27 class C4 { C4(int i); }; // NOLINT(google-explicit-constructor)
29 class C5 { C5(int i); }; // NOLINT(some-check, google-explicit-constructor)
35 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
40 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
45 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
52 class C12 { C12(int i); }; // NOLINT(some-other-check) NOLINT(google-explicit
[all...]
/llvm-project/clang-tools-extra/include-cleaner/unittests/
H A DWalkASTTest.cpp40 // Target: int $explicit^foo();
97 for (auto RT : {RefType::Explicit, RefType::Implicit, RefType::Ambiguous}) { in testWalk()
114 testWalk("int $explicit^x;", "int y = ^x;"); in TEST()
115 testWalk("int $explicit^foo();", "int y = ^foo();"); in TEST()
116 testWalk("namespace ns { int $explicit^x; }", "int y = ns::^x;"); in TEST()
119 testWalk("extern int $explicit^x; int x;", "int y = ^x;"); in TEST()
121 testWalk("struct S{}; S $explicit^foo();", "auto bar() { return ^foo(); }"); in TEST()
125 testWalk("struct $explicit^S {};", "^S *y;"); in TEST()
126 testWalk("enum $explicit^E {};", "^E *y;"); in TEST()
127 testWalk("struct $explicit in TEST()
[all...]
/llvm-project/clang/test/SemaCXX/
H A Dcxx2a-explicit-bool.cpp24 explicit(1 << a)
26 // expected-error@-2 {{explicit specifier argument is not a constant expression}}
37 explicit(b)
44 explicit(a +)
50 explicit(false) explicit
52 // expected-error@-2 {{duplicate 'explicit' declaration specifier}}
59 explicit(a == 0)
69 explicit(false) void f(int);// expected-error {{'explicit' ca
[all...]
/llvm-project/clang/test/Modules/Inputs/
H A Dmodule.modulemap29 explicit module b { header "macros_top_b.h" }
30 explicit module c { header "macros_top_c.h" }
39 explicit module undef {
54 explicit module sub {
62 explicit module sub {
82 explicit module Decl { header "decl.h" }
83 explicit module Decl2 { header "decl2.h" }
84 explicit module Def { header "def.h" }
89 explicit module Explicit { header "redecl-merge-top-explicit.h" }
105 explicit module prefix {
[all …]
/llvm-project/libcxx/include/
H A Dstdexcept34 explicit xxx_error(const string& what_arg);
35 explicit xxx_error(const char* what_arg);
65 explicit __libcpp_refstring(const char* __msg);
86 explicit logic_error(const string&);
87 explicit logic_error(const char*);
98 explicit logic_error(const std::string&); // Symbol uses versioned std::string
99 _LIBCPP_HIDE_FROM_ABI explicit logic_error(const char* __s) : exception(__s) {}
110 explicit runtime_error(const string&);
111 explicit runtime_error(const char*);
122 explicit runtime_erro
[all...]
H A Drandom42 explicit linear_congruential_engine(result_type s = default_seed); // before C++20
44 explicit linear_congruential_engine(result_type s); // C++20
45 template<class Sseq> explicit linear_congruential_engine(Sseq& q);
104 explicit mersenne_twister_engine(result_type s = default_seed); // before C++20
106 explicit mersenne_twister_engine(result_type s); // C++20
107 template<class Sseq> explicit mersenne_twister_engine(Sseq& q);
164 explicit subtract_with_carry_engine(result_type value = default_seed); // before C++20
166 explicit subtract_with_carry_engine(result_type value); // C++20
167 template<class Sseq> explicit subtract_with_carry_engine(Sseq& q);
215 explicit discard_block_engin
[all...]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/abseil/
H A Dupgrade-duration-conversions.cpp20 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
23 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
26 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
29 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
32 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
35 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
38 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
41 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
44 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
47 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
[all …]
/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.fct.spec/
H A Dp6.cpp7 explicit A();
9 explicit operator int();
11 // expected-warning@-2 {{explicit conversion functions are a C++11 extension}}
14explicit void f0(); // expected-error {{'explicit' can only be applied to a constructor or convers…
19 explicit A::A() { } // expected-error {{'explicit' can only be specified inside the class definitio… in A()
20 explicit A::operator bool() { return false; } in operator bool()
22 // expected-warning@-2 {{explicit conversion functions are a C++11 extension}}
24 // expected-error@-4 {{'explicit' can only be specified inside the class definition}}
27 friend explicit A::A(); // expected-error {{'explicit' is invalid in friend declarations}}
/llvm-project/clang/test/CXX/temp/temp.spec/
H A Dno-body.cpp10 // expected-note@-2 {{explicit instantiation refers here}}
15 // expected-note@-2 {{explicit instantiation refers here}}
20 // expected-note@-2 {{explicit instantiation refers here}}
29 // expected-error@-2 {{explicit instantiation of 'f' must occur at global scope}}
34 // expected-error@-2 {{explicit instantiation of 'g' must occur at global scope}}
39 // expected-error@-2 {{explicit instantiation of 'x' must occur at global scope}}
58 …template void g0(int) { } // expected-error {{function cannot be defined in an explicit instantiat…
60 …template struct y0 { }; // expected-error {{class cannot be defined in an explicit instantiati…
63 // Explicit specializations expected in global scope
78 …} // expected-error {{explicit template instantiation cannot have a definition; if this definit… in f1()
[all …]
/llvm-project/clang/test/CXX/temp/temp.spec/temp.expl.spec/
H A Dexamples.cpp68 // for explicit specialization (14.7.3/14)
215 // explicit instantiation Declaration, and explicit instantiation defInition.
227 …template class BasicStringPiece<int>; // expected-note {{explicit instantiation definition is her…
228 …asicStringPiece<int>; // expected-error {{explicit instantiation declaration (with 'extern') foll…
233 …template class BasicStringPiece<int>; // expected-error {{explicit instantiation of undefined tem…
240 …pected-error {{explicit instantiation of undefined template 'spec_vs_expl_inst::IDS::BasicStringPi…
241 …asicStringPiece<int>; // expected-error {{explicit instantiation declaration (with 'extern') foll…
247 …extern template class BasicStringPiece<int>; // expected-error {{explicit instantiation of undefi…
254 …extern template class BasicStringPiece<int>; // expected-error {{explicit instantiation of undefi…
271 …template class BasicStringPiece<int>; // expected-note {{explicit instantiation definition is her…
[all …]
/llvm-project/clang/test/Templight/
H A Dtemplight-explicit-template-arg.cpp11 // CHECK: {{^orig:[ ]+'.*templight-explicit-template-arg.cpp:3:6'}} in main()
12 // CHECK: {{^poi:[ ]+'.*templight-explicit-template-arg.cpp:58:3'$}} in main()
17 // CHECK: {{^orig:[ ]+'.*templight-explicit-template-arg.cpp:3:6'}} in main()
18 // CHECK: {{^poi:[ ]+'.*templight-explicit-template-arg.cpp:58:3'$}} in main()
24 // CHECK: {{^orig:[ ]+'.*templight-explicit-template-arg.cpp:3:6'}} in main()
25 // CHECK: {{^poi:[ ]+'.*templight-explicit-template-arg.cpp:58:3'$}} in main()
30 // CHECK: {{^orig:[ ]+'.*templight-explicit-template-arg.cpp:3:6'}} in main()
31 // CHECK: {{^poi:[ ]+'.*templight-explicit-template-arg.cpp:58:3'$}} in main()
37 // CHECK: {{^orig:[ ]+'.*templight-explicit-template-arg.cpp:3:6'}} in main()
38 // CHECK: {{^poi:[ ]+'.*templight-explicit-template-arg.cpp:58:3'$}} in main()
[all …]

12345678910>>...192