| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/ |
| H A D | qualified-auto.rst | 1 .. title:: clang-tidy - readability-qualified-auto 3 readability-qualified-auto 11 check will transform ``auto`` to ``auto *`` when the type is deduced to be a 16 for (auto Data : MutatablePtrContainer) { 19 for (auto Data : ConstantPtrContainer) { 39 const auto Foo = cast<int *>(Baz1); 42 auto BarFoo = cast<int **>(Baz4); 48 auto *const Foo = cast<int *>(Baz1); 51 auto *BarFoo = cast<int **>(Baz4); 59 ``auto *`` or ``auto &`` when applicable. [all …]
|
| /llvm-project-15.0.7/clang/test/SemaOpenCLCXX/ |
| H A D | addrspace-auto.clcpp | 5 auto ai = i; 10 auto ai = i; 14 __constant auto cai = c; 16 auto aii = cai; 19 auto &ref = i; 21 auto *ptr = &i; 23 auto &ref_c = cai; 26 auto **ptrptr = &ptr; 28 auto *&refptr = ptr; 30 //CHECK: VarDecl {{.*}} invalid gref '__global auto &__private' [all …]
|
| H A D | reinterpret-cast.clcpp | 15 auto l_to_i2 = reinterpret_cast<int2>(l1); 17 auto i2_to_l = reinterpret_cast<long>(i2); 18 …auto i2_to_i = reinterpret_cast<int>(i2); // expected-error{{reinterpret_cast from vector 'int2' (… 19 auto i2_to_i2 = reinterpret_cast<int2>(i2); 23 auto s2 = reinterpret_cast<__private short>(s); 24 auto s3 = reinterpret_cast<decltype(s)>(s); 25 auto s4 = reinterpret_cast<__global short>(s); 28 …auto x2 = reinterpret_cast<__private X>(x); // expected-error{{reinterpret_cast from '__private X'… 30 auto ptr = reinterpret_cast<__global int* __private>(g_ptr); 36 …auto r_id2 = reinterpret_cast<reserve_id_t>(r_id1); // expected-error{{reinterpret_cast from 'rese…
|
| H A D | template-astype.cl | 5 auto templated_astype(T x) { 10 auto test_long(long x) { return templated_astype(x); } 12 auto neg_test_int(int x) { return templated_astype(x); } 15 auto test_short4(short4 x) { return templated_astype(x); } 19 auto templated_builtin_astype(T x) { 23 auto test_builtin(char8 x) { return templated_builtin_astype(x); }
|
| H A D | address-space-lambda.clcpp | 5 auto glambda = [](auto a) { return a; }; 10 auto llambda = [&]() {i++;}; 16 …__constant auto err = [&]() {}; //expected-note{{candidate function not viable: 'this' object is i… 30 auto priv1 = []() __private {}; 33 auto priv2 = []() __generic {}; 35 …auto priv3 = []() __global {}; //expected-note{{candidate function not viable: 'this' object is in… 43 …__constant auto const1 = []() __private{}; //expected-note{{candidate function not viable: 'this' … 50 …__constant auto const2 = []() __generic{}; //expected-note{{candidate function not viable: 'this' … 58 __constant auto const3 = []() __constant{};
|
| /llvm-project-15.0.7/llvm/test/Demangle/ |
| H A D | ms-cxx14.test | 9 ?FunctionWithLocalType@@YA?A?<auto>@@XZ 10 ; CHECK: <auto> __cdecl FunctionWithLocalType(void) 12 ?ValueFromFunctionWithLocalType@@3ULocalType@?1??FunctionWithLocalType@@YA?A?<auto>@@XZ@A 15 ??R<lambda_0>@@QBE?A?<auto>@@XZ 16 ; CHECK: <auto> __thiscall <lambda_0>::operator()(void) const 18 ?ValueFromLambdaWithLocalType@@3ULocalType@?1???R<lambda_0>@@QBE?A?<auto>@@XZ@A 22 ; CHECK: struct `public: <auto> __thiscall `<auto> __cdecl TemplateFuncionWithLocalLambda<int>(int)… 24 ??$TemplateFuncionWithLocalLambda@H@@YA?A?<auto>@@H@Z 25 ; CHECK: <auto> __cdecl TemplateFuncionWithLocalLambda<int>(int) 27 ??R<lambda_1>@?0???$TemplateFuncionWithLocalLambda@H@@YA?A?<auto>@@H@Z@QBE?A?1@XZ [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/ |
| H A D | use-auto.rst | 1 .. title:: clang-tidy - modernize-use-auto 3 modernize-use-auto 6 This check is responsible for using the ``auto`` type specifier for variable 15 auto I = my_container.begin(); 29 auto val = 42; 30 auto &I = SomeObject.getInfo(); 119 ``auto`` improving readability and maintainability. 127 auto *my_pointer = new TypeName(my_param); 152 ``auto`` improving readability and maintainability. 160 auto *my_pointer = static_cast<TypeName>(my_param); [all …]
|
| H A D | use-trailing-return-type.rst | 8 The return type before the function name is replaced by ``auto`` 24 auto f1() -> int; 25 inline auto f2(int arg) -> int noexcept; 26 virtual auto f3() const && -> float = delete; 59 auto f(unsigned S) -> S { return {S * 2}; } // error 62 auto m() -> struct S; 64 auto CC::m() -> S { return {0}; } // error
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/dex/utils/ |
| H A D | PrettyOutputBase.py | 98 'a': self.auto, 323 o.auto('bar\n', stream) 324 o.auto('foo\n', stream) 325 o.auto('baz\n', stream) 330 o.auto('bar\nfoo\nbaz\n', stream) 356 o.auto('foo\nbar\nbaz\n', stream) 369 o.auto('<r>hi</>', stream) 374 o.auto('<r><y>a</>b</>c', stream) 380 o.auto('<r>hi', stream) 383 o.auto('hi</>', stream) [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/hicpp/ |
| H A D | use-auto.rst | 1 .. title:: clang-tidy - hicpp-use-auto 3 :http-equiv=refresh: 5;URL=../modernize/use-auto.html 5 hicpp-use-auto 8 The `hicpp-use-auto` check is an alias, please see 9 `modernize-use-auto <../modernize/use-auto.html>`_ for more information. 10 It enforces the `rule 7.1.8 <http://www.codingstandard.com/rule/7-1-8-use-auto-id-expr-when-declari…
|
| /llvm-project-15.0.7/lldb/bindings/python/ |
| H A D | python-wrapper.swig | 35 if (auto arg_info = pfunc.GetArgInfo()) 43 auto result = 137 auto argc = pfunc.GetArgInfo(); 530 auto *sb_stream = new lldb::SBStream(); 586 auto arg_info = pfunc.GetArgInfo(); 787 auto argc = pfunc.GetArgInfo(); 793 auto cmd_retobj_arg = ToSWIGWrapper(cmd_retobj); 817 auto cmd_retobj_arg = ToSWIGWrapper(cmd_retobj); 911 auto result = pfunc(ToSWIGWrapper(process), dict); 958 auto result = pfunc(ToSWIGWrapper(target), dict); [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/llvm/ |
| H A D | qualified-auto.rst | 1 .. title:: clang-tidy - llvm-qualified-auto 3 :http-equiv=refresh: 5;URL=../readability/qualified-auto.html 5 llvm-qualified-auto 8 The llvm-qualified-auto check is an alias, please see 9 `readability-qualified-auto <../readability/qualified-auto.html>`_
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | property-invalid-type.mm | 26 @property (nonnull) auto a; // expected-error {{'auto' not allowed in interface member}} 27 @property auto b; // expected-error {{'auto' not allowed in interface member}} 28 @property (nullable) auto c; // expected-error {{'auto' not allowed in interface member}} 32 @property (nonnull) auto catprop; // expected-error {{'auto' not allowed in interface member}}
|
| /llvm-project-15.0.7/clang/test/PCH/ |
| H A D | cxx1y-lambdas.mm | 9 return [](auto z, int y = 0) { return z + y; }(5); 14 auto lambda = [](auto z) { return z + z; }; 19 auto lambda = [](auto N) -> int { 32 auto lambda = [=](int m) { return n + m; }; 42 auto with_pack = [](auto ...xs){}; 55 // CHECK-PRINT: lambda = [](auto z
|
| /llvm-project-15.0.7/libcxx/test/libcxx/utilities/function.objects/ |
| H A D | func.blocks.arc.pass.mm | 38 auto hello = std::string("Hello world"); 51 auto hello = std::string("Hello world"); 60 auto hello = std::string("Hello world"); 61 auto f = AssignmentFactory(^() { 69 auto f = AssignmentFactory2(); 75 auto hello = std::string("Hello world"); 76 auto f = Factory(^() { 84 auto f = Factory2();
|
| /llvm-project-15.0.7/llvm/test/Transforms/Util/ |
| H A D | trivial-auto-var-init-call.ll | 6 ; CHECK: Call to memset inserted by -ftrivial-auto-var-init. 15 ; YAML-NEXT: - String: ' inserted by -ftrivial-auto-var-init.' 27 ; CHECK-NEXT: Call to memcpy inserted by -ftrivial-auto-var-init. 36 ; YAML-NEXT: - String: ' inserted by -ftrivial-auto-var-init.' 48 ; CHECK-NEXT: Call to memmove inserted by -ftrivial-auto-var-init. 57 ; YAML-NEXT: - String: ' inserted by -ftrivial-auto-var-init.' 69 ; CHECK-NEXT: Call to bzero inserted by -ftrivial-auto-var-init. 78 ; YAML-NEXT: - String: ' inserted by -ftrivial-auto-var-init.' 81 ; CHECK-NEXT: Call to memset inserted by -ftrivial-auto-var-init. 90 ; YAML-NEXT: - String: ' inserted by -ftrivial-auto-var-init.' [all …]
|
| H A D | trivial-auto-var-init-store.ll | 6 ; CHECK: Store inserted by -ftrivial-auto-var-init. 31 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. 56 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. 81 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. 114 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. 125 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. 138 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. 149 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. 161 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. 173 ; CHECK-NEXT: Store inserted by -ftrivial-auto-var-init. [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/google/ |
| H A D | readability-casting.mm | 144 auto fn3 = (void (*)())&overloaded_function; 145 auto fn4 = (void (*)())overloaded_function; 146 auto fn5 = (void (&)(int))overloaded_function; 169 //auto s1 = (const S&)""; 170 auto s2 = (S)""; 171 auto s2a = (struct S)""; 172 auto s2b = (const S)""; 174 auto s3 = (const S&)c; 175 auto s4 = (S)c; 177 auto s5 = (const S&)cr; [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenOpenCLCXX/ |
| H A D | reinterpret_cast.clcpp | 10 auto l = reinterpret_cast<long>(in[0]); 12 auto i2 = reinterpret_cast<int2>(l); 17 auto s2 = reinterpret_cast<__private short>(s1); 20 auto s3 = reinterpret_cast<decltype(s1)>(s1); 23 auto s4 = reinterpret_cast<__global short>(s1); 27 auto l2 = reinterpret_cast<long2>(i4);
|
| /llvm-project-15.0.7/polly/lib/External/isl/imath/tests/ |
| H A D | test.bc | 3 auto s, sb; 20 auto r; 44 auto u, v, x, y, t, r; 83 auto c; 102 auto r; 110 auto s; 122 auto x;
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/abseil/ |
| H A D | faster-strsplit-delimiter.rst | 20 for (auto piece : absl::StrSplit(str, "B")) { 24 for (auto piece : absl::StrSplit(str, 'B')) { 28 for (auto piece : absl::StrSplit(str, absl::ByAnyChar("B"))) { 33 for (auto piece : absl::StrSplit(str, 'B')) { 37 for (auto piece : absl::StrSplit(str, absl::MaxSplits("B", 1))) { 41 for (auto piece : absl::StrSplit(str, absl::MaxSplits('B', 1))) {
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/boost/ |
| H A D | use-to-string.rst | 16 auto str = boost::lexical_cast<std::string>(42); 17 auto wstr = boost::lexical_cast<std::wstring>(2137LL); 20 auto str = std::to_string(42); 21 auto wstr = std::to_wstring(2137LL);
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profgen/ |
| H A D | coroutine.test | 36 static auto get_return_object_on_allocation_failure() { return generator{nullptr}; } 37 auto get_return_object() { return generator{handle::from_promise(*this)}; } 38 auto initial_suspend() { return std::experimental::suspend_always{}; } 39 auto final_suspend() { return std::experimental::suspend_always{}; } 42 auto yield_value(int value) { 77 auto g = ticker(500000);
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/performance/ |
| H A D | inefficient-algorithm.rst | 16 auto it = std::find(s.begin(), s.end(), 43); 20 auto it = s.find(43); 25 auto c = std::count(s.begin(), s.end(), 43); 29 auto c = s.count(43);
|
| /llvm-project-15.0.7/mlir/test/mlir-tblgen/ |
| H A D | constraint-unique.td | 122 // CHECK: auto [[$A_VALUE_GROUP:.*]] = getODSOperands(0); 123 // CHECK: for (auto [[$A_VALUE:.*]] : [[$A_VALUE_GROUP]]) 126 // CHECK: auto [[$RET_VALUE_GROUP:.*]] = getODSResults(0); 127 // CHECK: for (auto [[$RET_VALUE:.*]] : [[$RET_VALUE_GROUP]]) 130 // CHECK: for (auto ®ion : ::llvm::makeMutableArrayRef((*this)->getRegion(0))) 133 // CHECK: for (auto *successor : ::llvm::makeMutableArrayRef(c())) 143 // CHECK: auto [[$A_VALUE_GROUP:.*]] = getODSOperands(0); 144 // CHECK: for (auto [[$A_VALUE:.*]] : [[$A_VALUE_GROUP]]) 147 // CHECK: auto [[$RET_VALUE_GROUP:.*]] = getODSResults(0); 148 // CHECK: for (auto [[$RET_VALUE:.*]] : [[$RET_VALUE_GROUP]]) [all …]
|