Home
last modified time | relevance | path

Searched full:auto (Results 1 – 25 of 16031) sorted by relevance

12345678910>>...642

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dreadability-qualified-auto.cpp1 // RUN: %check_clang_tidy %s readability-qualified-auto %t
15 auto TdNakedPtr = getPtr(); in foo()
16 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: 'auto TdNakedPtr' can be declared as 'auto *TdNakedPtr' in foo()
17 // CHECK-FIXES: {{^}} auto *TdNakedPtr = getPtr(); in foo()
18 auto &TdNakedRef = getRef(); in foo()
19 auto TdNakedRefDeref = getRef(); in foo()
20 auto TdNakedCPtr = getCPtr(); in foo()
21 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: 'auto TdNakedCPtr' can be declared as 'const auto *TdN… in foo()
22 // CHECK-FIXES: {{^}} const auto *TdNakedCPtr = getCPtr(); in foo()
23 auto &TdNakedCRef = getCRef(); in foo()
[all …]
/external/vulkan-validation-layers/layers/generated/
Dchassis.cpp292 auto result = VkValFeatureEnableLookup.find(token); in SetLocalEnableSetting()
296 auto result2 = VkValFeatureEnableLookup2.find(token); in SetLocalEnableSetting()
319 auto result = VkValFeatureDisableLookup.find(token); in SetLocalDisableSetting()
325 auto result = ValidationDisableLookup.find(token); in SetLocalDisableSetting()
359 auto layer_data = GetLayerDataPtr(get_dispatch_key(device), layer_data_map); in GetDeviceProcAddr()
363 const auto &item = name_to_funcptr_map.find(funcName); in GetDeviceProcAddr()
371 auto &table = layer_data->device_dispatch_table; in GetDeviceProcAddr()
377 const auto &item = name_to_funcptr_map.find(funcName); in GetInstanceProcAddr()
381 auto layer_data = GetLayerDataPtr(get_dispatch_key(instance), layer_data_map); in GetInstanceProcAddr()
382 auto &table = layer_data->instance_dispatch_table; in GetInstanceProcAddr()
[all …]
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
Dp5.cpp6 auto a; // expected-error{{'auto' not allowed in non-static struct member}}
7 auto *b; // expected-error{{'auto' not allowed in non-static struct member}}
8 const auto c; // expected-error{{'auto' not allowed in non-static struct member}}
10 void f() throw (auto); // expected-error{{'auto' not allowed here}}
12 friend auto; // expected-error{{'auto' not allowed in non-static struct member}}
14 operator auto(); // expected-error{{'auto' not allowed in conversion function type}}
17 // PR 9278: auto is not allowed in typedefs, except with a trailing return type.
18 typedef auto *AutoPtr; // expected-error{{'auto' not allowed in typedef}}
19 typedef auto (*PFun)(int a); // expected-error{{'auto' not allowed in typedef}}
20 typedef auto Fun(int a) -> decltype(a + a);
[all …]
Dp7-1y.cpp23 auto x3a = i;
24 decltype(auto) x3d = i;
28 auto x4a = (i);
29 decltype(auto) x4d = (i);
33 auto x5a = f();
34 decltype(auto) x5d = f();
38 auto x6a = { 1, 2 };
39 decltype(auto) x6d = { 1, 2 }; // expected-error {{cannot deduce 'decltype(auto)' from initializer …
42 auto *x7a = &i;
43 decltype(auto) *x7d = &i; // expected-error {{cannot form pointer to 'decltype(auto)'}}
[all …]
/external/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
Dp5.cpp6 auto a; // expected-error{{'auto' not allowed in non-static struct member}}
7 auto *b; // expected-error{{'auto' not allowed in non-static struct member}}
8 const auto c; // expected-error{{'auto' not allowed in non-static struct member}}
10 void f() throw (auto); // expected-error{{'auto' not allowed here}}
12 friend auto; // expected-error{{'auto' not allowed in friend declaration}}
14 operator auto(); // expected-error{{'auto' not allowed in conversion function type}}
17 // PR 9278: auto is not allowed in typedefs, except with a trailing return type.
18 typedef auto *AutoPtr; // expected-error{{'auto' not allowed in typedef}}
19 typedef auto (*PFun)(int a); // expected-error{{'auto' not allowed in typedef}}
20 typedef auto Fun(int a) -> decltype(a + a);
[all …]
Dp7-1y.cpp23 auto x3a = i;
24 decltype(auto) x3d = i;
28 auto x4a = (i);
29 decltype(auto) x4d = (i);
33 auto x5a = f();
34 decltype(auto) x5d = f();
38 auto x6a = { 1, 2 };
39 decltype(auto) x6d = { 1, 2 }; // expected-error {{cannot deduce 'decltype(auto)' from initializer …
42 auto *x7a = &i;
43 decltype(auto) *x7d = &i; // expected-error {{cannot form pointer to 'decltype(auto)'}}
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dwarn-unused-lambda-capture.cpp33 auto captures_nothing = [] {}; in test()
35 auto captures_nothing_by_value = [=] {}; in test()
36 auto captures_nothing_by_reference = [&] {}; in test()
38 auto implicit_by_value = [=]() mutable { i++; }; in test()
39 auto implicit_by_reference = [&] { i++; }; in test()
41 auto explicit_by_value_used = [i] { return i + 1; }; in test()
42 auto explicit_by_value_used_void = [i] { (void)i; }; in test()
43 auto explicit_by_value_unused = [i] {}; // expected-warning{{lambda capture 'i' is not used}} in test()
44auto explicit_by_value_unused_sizeof = [i] { return sizeof(i); }; // expected-warning{{lambda capt… in test()
45auto explicit_by_value_unused_decltype = [i] { decltype(i) j = 0; }; // expected-warning{{lambda c… in test()
[all …]
Dcxx1y-deduced-return-type.cpp4 auto f(); // expected-note {{previous}}
7 auto &g();
8 auto g() -> auto &;
10 auto h() -> auto *;
11 auto *h();
14 operator auto(); // expected-note {{declared here}}
16 int conv1a = conv1; // expected-error {{function 'operator auto' with deduced return type cannot be…
18 Conv1::operator auto() { return 123; } in operator auto()
20 int conv1c = conv1.operator auto();
24 operator auto() { return 0; } // expected-note {{previous}} in operator auto()
[all …]
Dcxx1y-generic-lambdas-capturing.cpp38 auto L = [](auto a) { return a; }; in foo()
41 auto L = [](auto a) -> void { in foo2()
42 auto M = [](char b) -> void { in foo2()
43 auto N = [](auto c) -> void { in foo2()
66 auto L = [](auto a, auto b) { in doit()
72 auto L2 = [](auto a, int i) { in doit()
79 auto B = []() { return ^{ return a; }; }; //expected-error{{cannot be implicitly capture}}\ in doit()
83 //auto X = ^{ return a; }; in doit()
85 //auto Y = []() -> auto { return 3; return 'c'; }; in doit()
97 auto L = [=](auto a) { in doit()
[all …]
Dcxx1y-generic-lambdas.cpp16 auto L = [i](auto a) { return i + a; }; in test()
23 auto L = [](auto a) { return a; }; in test()
34 T (*fp)(T) = [](auto a) { return a; }; in __anonf3d1ca8a0302()
41 void fooT(T t, T (*fp)(T) = [](auto a) { return a; }) { in __anonf3d1ca8a0402()
47 auto L = [](auto a) { return a; }; in test()
60 auto L = [](auto a) ->int { return a; }; //expected-note 2{{candidate template ignored}} in test()
67 auto L = [=](auto b, char c = 'x') { in test()
69 return [](auto a) ->decltype(a) { return a; }; in test()
83 auto L = [=](auto b) { in test()
84 return [](auto a) ->decltype(b)* { return (decltype(b)*)0; }; in test()
[all …]
/external/clang/test/SemaCXX/
Dcxx1y-generic-lambdas-capturing.cpp35 auto L = [](auto a) { return a; }; in foo()
38 auto L = [](auto a) -> void { in foo2()
39 auto M = [](char b) -> void { in foo2()
40 auto N = [](auto c) -> void { in foo2()
63 auto L = [](auto a, auto b) { in doit()
69 auto L2 = [](auto a, int i) { in doit()
76 auto B = []() { return ^{ return a; }; }; //expected-error{{cannot be implicitly capture}}\ in doit()
80 //auto X = ^{ return a; }; in doit()
82 //auto Y = []() -> auto { return 3; return 'c'; }; in doit()
94 auto L = [=](auto a) { in doit()
[all …]
Dcxx1y-deduced-return-type.cpp4 auto f(); // expected-note {{previous}}
7 auto &g();
8 auto g() -> auto &;
10 auto h() -> auto *;
11 auto *h();
14 operator auto(); // expected-note {{declared here}}
16 int conv1a = conv1; // expected-error {{function 'operator auto' with deduced return type cannot be…
18 Conv1::operator auto() { return 123; } in operator auto()
20 int conv1c = conv1.operator auto();
24 operator auto() { return 0; } // expected-note {{previous}} in operator auto()
[all …]
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dprelu_test.cc35 auto rng = std::mt19937(random_device()); in TEST()
36 auto shape_rng = in TEST()
38 const auto batch = shape_rng(); in TEST()
39 const auto height = shape_rng(); in TEST()
40 const auto width = shape_rng(); in TEST()
41 const auto channels = shape_rng(); in TEST()
55 auto rng = std::mt19937(random_device());
56 auto shape_rng =
58 const auto batch = shape_rng();
59 const auto height = shape_rng();
[all …]
Ddiv_test.cc34 auto rng = std::mt19937(random_device());
35 auto shape_rng =
37 const auto batch = shape_rng();
38 const auto height = shape_rng();
39 const auto width = shape_rng();
40 const auto channels = shape_rng();
54 auto rng = std::mt19937(random_device());
55 auto shape_rng =
57 const auto batch = shape_rng();
58 const auto height = shape_rng();
[all …]
Dsub_test.cc34 auto rng = std::mt19937(random_device());
35 auto shape_rng =
37 const auto batch = shape_rng();
38 const auto height = shape_rng();
39 const auto width = shape_rng();
40 const auto channels = shape_rng();
54 auto rng = std::mt19937(random_device());
55 auto shape_rng =
57 const auto batch = shape_rng();
58 const auto height = shape_rng();
[all …]
Dadd_test.cc34 auto rng = std::mt19937(random_device());
35 auto shape_rng =
37 const auto batch = shape_rng();
38 const auto height = shape_rng();
39 const auto width = shape_rng();
40 const auto channels = shape_rng();
54 auto rng = std::mt19937(random_device());
55 auto shape_rng =
57 const auto batch = shape_rng();
58 const auto height = shape_rng();
[all …]
Dmul_test.cc34 auto rng = std::mt19937(random_device());
35 auto shape_rng =
37 const auto batch = shape_rng();
38 const auto height = shape_rng();
39 const auto width = shape_rng();
40 const auto channels = shape_rng();
54 auto rng = std::mt19937(random_device());
55 auto shape_rng =
57 const auto batch = shape_rng();
58 const auto height = shape_rng();
[all …]
Dmean_test.cc34 auto rng = std::mt19937(random_device()); in TEST()
35 auto shape_rng = in TEST()
37 const auto batch = shape_rng(); in TEST()
38 const auto height = shape_rng(); in TEST()
39 const auto width = shape_rng(); in TEST()
40 const auto channels = shape_rng(); in TEST()
55 auto rng = std::mt19937(random_device()); in TEST()
56 auto shape_rng = in TEST()
58 const auto batch = shape_rng(); in TEST()
59 const auto height = shape_rng(); in TEST()
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/test/operators/
Damb.cpp6 auto sc = rxsc::make_test();
7 auto w = sc.create_worker();
11 auto ys1 = sc.make_hot_observable({
15 auto ys2 = sc.make_hot_observable({
19 auto ys3 = sc.make_hot_observable({
23 auto xs = sc.make_cold_observable({
32 auto res = w.start(
42 auto required = std::vector<rxsc::test::messages<int>::recorded_type>();
43 auto actual = res.get_observer().messages();
48 auto required = rxu::to_vector({
[all …]
Dwith_latest_from.cpp6 auto sc = rxsc::make_test();
7 auto w = sc.create_worker();
10 auto o1 = sc.make_hot_observable({
17 auto o2 = sc.make_hot_observable({
28 auto res = w.start(
43 auto required = rxu::to_vector({
50 auto actual = res.get_observer().messages();
55 auto required = rxu::to_vector({
58 auto actual = o1.subscriptions();
63 auto required = rxu::to_vector({
[all …]
Dzip.cpp6 auto sc = rxsc::make_test();
7 auto w = sc.create_worker();
10 auto n1 = sc.make_hot_observable({
14 auto n2 = sc.make_hot_observable({
20 auto res = w.start(
35 auto required = std::vector<rxsc::test::messages<int>::recorded_type>();
36 auto actual = res.get_observer().messages();
41 auto required = rxu::to_vector({
44 auto actual = n1.subscriptions();
49 auto required = rxu::to_vector({
[all …]
Dtake_until.cpp7 auto sc = rxsc::make_test();
8 auto w = sc.create_worker();
11 auto xs = sc.make_hot_observable({
20 auto ys = sc.make_hot_observable({
28 auto res = w.start(
38 auto required = rxu::to_vector({
43 auto actual = res.get_observer().messages();
48 auto required = rxu::to_vector({
51 auto actual = xs.subscriptions();
56 auto required = rxu::to_vector({
[all …]
Dskip_until.cpp6 auto sc = rxsc::make_test();
7 auto w = sc.create_worker();
10 auto l = sc.make_hot_observable({
19 auto r = sc.make_hot_observable({
27 auto res = w.start(
37 auto required = rxu::to_vector({
42 auto actual = res.get_observer().messages();
47 auto required = rxu::to_vector({
50 auto actual = l.subscriptions();
55 auto required = rxu::to_vector({
[all …]
Dcombine_latest.cpp6 auto sc = rxsc::make_test();
7 auto w = sc.create_worker();
10 auto o1 = sc.make_hot_observable({
17 auto o2 = sc.make_hot_observable({
28 auto res = w.start(
43 auto required = rxu::to_vector({
51 auto actual = res.get_observer().messages();
56 auto required = rxu::to_vector({
59 auto actual = o1.subscriptions();
64 auto required = rxu::to_vector({
[all …]
/external/llvm-project/clang/test/Analysis/
Diterator-range.cpp11 auto i = V.begin(); in deref_begin()
16 auto i = ++V.begin(); in deref_begind_begin()
23 auto i = return_any_iterator(V.begin()); in deref_unknown()
28 auto i = --V.end(); in deref_ahead_of_end()
33 auto i = V.end(); in deref_end()
41 auto i = V.begin(); in incr_begin()
46 auto i = ++V.begin(); in incr_behind_begin()
51 auto i = return_any_iterator(V.begin()); in incr_unknown()
56 auto i = --V.end(); in incr_ahead_of_end()
61 auto i = V.end(); in incr_end()
[all …]

12345678910>>...642