Home
last modified time | relevance | path

Searched refs:maybe_unused (Results 1 – 25 of 94) sorted by relevance

1234

/external/llvm-project/libcxx/test/std/numerics/numbers/
Ddefined.pass.cpp15 [[maybe_unused]] const double* dd0{&std::numbers::e}; in tests()
16 [[maybe_unused]] const double* dd1{&std::numbers::log2e}; in tests()
17 [[maybe_unused]] const double* dd2{&std::numbers::log10e}; in tests()
18 [[maybe_unused]] const double* dd3{&std::numbers::pi}; in tests()
19 [[maybe_unused]] const double* dd4{&std::numbers::inv_pi}; in tests()
20 [[maybe_unused]] const double* dd5{&std::numbers::inv_sqrtpi}; in tests()
21 [[maybe_unused]] const double* dd6{&std::numbers::ln2}; in tests()
22 [[maybe_unused]] const double* dd7{&std::numbers::ln10}; in tests()
23 [[maybe_unused]] const double* dd8{&std::numbers::sqrt2}; in tests()
24 [[maybe_unused]] const double* dd9{&std::numbers::sqrt3}; in tests()
[all …]
Dspecialize.pass.cpp16 [[maybe_unused]] float f0{std::numbers::e_v<float>}; in tests()
17 [[maybe_unused]] float f1{std::numbers::log2e_v<float>}; in tests()
18 [[maybe_unused]] float f2{std::numbers::log10e_v<float>}; in tests()
19 [[maybe_unused]] float f3{std::numbers::pi_v<float>}; in tests()
20 [[maybe_unused]] float f4{std::numbers::inv_pi_v<float>}; in tests()
21 [[maybe_unused]] float f5{std::numbers::inv_sqrtpi_v<float>}; in tests()
22 [[maybe_unused]] float f6{std::numbers::ln2_v<float>}; in tests()
23 [[maybe_unused]] float f7{std::numbers::ln10_v<float>}; in tests()
24 [[maybe_unused]] float f8{std::numbers::sqrt2_v<float>}; in tests()
25 [[maybe_unused]] float f9{std::numbers::sqrt3_v<float>}; in tests()
[all …]
/external/llvm-project/clang/test/Sema/
Dc2x-maybe_unused.c3 struct [[maybe_unused]] S1 { // ok
4 int a [[maybe_unused]];
7 enum [[maybe_unused]] E1 {
8 EnumVal [[maybe_unused]]
11 [[maybe_unused]] void unused_func([[maybe_unused]] int parm) { in unused_func()
12 typedef int maybe_unused_int [[maybe_unused]]; in unused_func()
13 [[maybe_unused]] int I; in unused_func()
21 [[maybe_unused]] int y; in f1()
22 typedef int maybe_unused_int [[maybe_unused]]; in f1()
31 [[maybe_unused]] void f2(void);
Dc2x-maybe_unused-errors.c3 struct [[maybe_unused]] S1 { // ok
4 int a [[maybe_unused]];
6 struct [[maybe_unused maybe_unused]] S2 { // expected-error {{attribute 'maybe_unused' cannot appea…
9 struct [[maybe_unused("Wrong")]] S3 { // expected-error {{'maybe_unused' cannot have an argument li…
/external/llvm-project/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/
Dp2.cpp3 struct [[maybe_unused]] S {
4 int I [[maybe_unused]];
5 static int SI [[maybe_unused]];
8 enum [[maybe_unused]] E1 {
9 EnumVal [[maybe_unused]]
12 [[maybe_unused]] void unused_func([[maybe_unused]] int parm) { in unused_func()
13 typedef int maybe_unused_int [[maybe_unused]]; in unused_func()
14 [[maybe_unused]] int I; in unused_func()
17 namespace [[maybe_unused]] N {} // expected-warning {{'maybe_unused' attribute only applies to}}
Dp3.cpp4 static_assert(__has_cpp_attribute(maybe_unused) == 201603, "");
6 struct [[maybe_unused]] S {};
9 EnumVal [[maybe_unused]],
21 [[maybe_unused]] int y; in f()
22 typedef int maybe_unused_int [[maybe_unused]]; in f()
Dp1.cpp3 struct [[maybe_unused]] S1 {}; // ok
4 struct [[maybe_unused maybe_unused]] S2 {}; // expected-error {{attribute 'maybe_unused' cannot app…
5 struct [[maybe_unused("Wrong")]] S3 {}; // expected-error {{'maybe_unused' cannot have an argument …
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/
Dp2.cpp3 struct [[maybe_unused]] S {
4 int I [[maybe_unused]];
5 …static int SI [[maybe_unused]]; // expected-warning {{'maybe_unused' attribute only applies to var…
8 enum [[maybe_unused]] E1 {
9 EnumVal [[maybe_unused]]
12 [[maybe_unused]] void unused_func([[maybe_unused]] int parm) { in unused_func()
13 typedef int maybe_unused_int [[maybe_unused]]; in unused_func()
14 [[maybe_unused]] int I; in unused_func()
17 namespace [[maybe_unused]] N {} // expected-warning {{'maybe_unused' attribute only applies to}}
Dp1.cpp3 struct [[maybe_unused]] S1 {}; // ok
4 struct [[maybe_unused maybe_unused]] S2 {}; // expected-error {{attribute 'maybe_unused' cannot app…
5 struct [[maybe_unused("Wrong")]] S3 {}; // expected-error {{'maybe_unused' cannot have an argument …
Dp3.cpp4 static_assert(__has_cpp_attribute(maybe_unused) == 201603, "");
6 struct [[maybe_unused]] S {};
13 [[maybe_unused]] int y; in f()
14 typedef int maybe_unused_int [[maybe_unused]]; in f()
/external/llvm-project/libcxx/test/std/containers/views/span.sub/
Dsubspan.fail.cpp33 …[[maybe_unused]] auto s1 = sp.subspan<5>(); // expected-error-re@span:* {{static_assert failed{{( … in main()
38 …[[maybe_unused]] auto s1 = sp.subspan<0, 5>(); // expected-error-re@span:* {{static_assert failed{… in main()
43 …[[maybe_unused]] auto s1 = sp.subspan<2, 3>(); // expected-error-re@span:* {{static_assert failed{… in main()
48 …[[maybe_unused]] auto s1 = sp.subspan<3, std::size_t(-2)>(); // expected-error-re@span:* {{static_… in main()
Dfirst.fail.cpp31 …[[maybe_unused]] auto s1 = sp.first<5>(); // expected-error-re@span:* {{static_assert failed{{( du… in main()
36 …[[maybe_unused]] auto s1 = sp.first<std::size_t(-1)>(); // expected-error-re@span:* {{static_asser… in main()
Dlast.fail.cpp31 …[[maybe_unused]] auto s1 = sp.last<5>(); // expected-error-re@span:* {{static_assert failed{{( due… in main()
36 …[[maybe_unused]] auto s1 = sp.last<std::size_t(-1)>(); // expected-error-re@span:* {{static_assert… in main()
/external/pigweed/pw_tokenizer/
Dtoken_database_fuzzer.cc57 [[maybe_unused]] volatile const char* entry_string = entry.string; in IterateOverDatabase()
58 [[maybe_unused]] volatile uint32_t entry_token = entry.token; in IterateOverDatabase()
122 [[maybe_unused]] volatile auto match = token_database.Find(random_token); in LLVMFuzzerTestOneInput()
Dtokenize_test.cc72 [[maybe_unused]] constexpr uint32_t token = PW_TOKENIZE_STRING("(O_o)"); in TEST()
73 [[maybe_unused]] constexpr uint32_t masked_1 = in TEST()
75 [[maybe_unused]] constexpr uint32_t masked_2 = in TEST()
77 [[maybe_unused]] constexpr uint32_t masked_3 = in TEST()
132 [[maybe_unused]] constexpr uint32_t token_1 = \
134 [[maybe_unused]] constexpr uint32_t token_2 = \
136 [[maybe_unused]] constexpr uint32_t token_3 = \
/external/ethtool/
Dtg3.c7 int tg3_dump_eeprom(struct ethtool_drvinfo *info maybe_unused, in tg3_dump_eeprom() argument
26 int tg3_dump_regs(struct ethtool_drvinfo *info maybe_unused, in tg3_dump_regs() argument
Dstmmac.c21 int st_mac100_dump_regs(struct ethtool_drvinfo *info maybe_unused, in st_mac100_dump_regs() argument
54 int st_gmac_dump_regs(struct ethtool_drvinfo *info maybe_unused, in st_gmac_dump_regs() argument
/external/pigweed/pw_sync_freertos/public/pw_sync_freertos/
Dbinary_semaphore_inline.h39 [[maybe_unused]] BaseType_t already_full = in release()
44 [[maybe_unused]] BaseType_t already_full = xSemaphoreGive(&native_type_); in release()
/external/pigweed/pw_assert_basic/
Ddocs.rst39 [[maybe_unused]] const char* file_name,
40 [[maybe_unused]] int line_number,
41 [[maybe_unused]] const char* function_name,
/external/pigweed/pw_rpc/nanopb/public/pw_rpc/internal/
Dnanopb_method_union.h48 [[maybe_unused]] NanopbMessageDescriptor request_fields, in GetNanopbOrRawMethodFor()
49 [[maybe_unused]] NanopbMessageDescriptor response_fields) { in GetNanopbOrRawMethodFor()
/external/skia/src/gpu/
DGrRenderTaskCluster.cpp19 [[maybe_unused]] static SkString describe_task(GrRenderTask* t) { in describe_task()
27 [[maybe_unused]] static SkString describe_tasks(SkSpan<const sk_sp<GrRenderTask>> collection) { in describe_tasks()
35 [[maybe_unused]] static SkString describe_tasks(const SkTInternalLList<GrRenderTask>& collection) { in describe_tasks()
/external/skia/tests/sksl/dslfp/
DGrDSLFPTest_IfStatement.dsl.cpp23 … [[maybe_unused]] const GrDSLFPTest_IfStatement& _outer = args.fFp.cast<GrDSLFPTest_IfStatement>(); in emitCode()
27 [[maybe_unused]] const auto& one = _outer.one; in emitCode()
30 [[maybe_unused]] const auto& unused = _outer.unused; in emitCode()
DGrDSLFPTest_DoStatement.dsl.cpp23 … [[maybe_unused]] const GrDSLFPTest_DoStatement& _outer = args.fFp.cast<GrDSLFPTest_DoStatement>(); in emitCode()
27 [[maybe_unused]] const auto& shouldLoop = _outer.shouldLoop; in emitCode()
DGrDSLFPTest_SwitchStatement.dsl.cpp23 …[[maybe_unused]] const GrDSLFPTest_SwitchStatement& _outer = args.fFp.cast<GrDSLFPTest_SwitchState… in emitCode()
27 [[maybe_unused]] const auto& ten = _outer.ten; in emitCode()
/external/openscreen/util/trace_logging/
Dmacro_support.h34 #define TRACE_INTERNAL_IGNORE_UNUSED_VAR [[maybe_unused]]
38 #define TRACE_INTERNAL_IGNORE_UNUSED_VAR [[maybe_unused]]

1234