Home
last modified time | relevance | path

Searched refs:IntRef (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dignored-reference-qualifiers-disabled.cpp8 typedef int& IntRef; typedef
10 const IntRef ref_c(); // qual-warning{{'const' qualifier on reference type 'IntRef' (aka 'int &') h…
11 volatile IntRef ref_v(); // qual-warning{{'volatile' qualifier on reference type 'IntRef' (aka 'int…
12 const volatile IntRef ref_cv(); // qual-warning{{'const' qualifier on reference type 'IntRef' (aka …
H A Dattr-lifetimebound.cpp19 struct IntRef { int *target; }; argument
22 int &classparam(IntRef param [[clang::lifetimebound]]);
H A Dtype-traits.cpp1477 typedef Int& IntRef; typedef
1519 { int arr[F(__has_trivial_constructor(IntRef))]; } in has_trivial_default_constructor()
1570 { int arr[T(__has_trivial_copy(IntRef))]; } in has_trivial_copy_constructor()
1611 { int arr[F(__has_trivial_assign(IntRef))]; } in has_trivial_copy_assignment()
1637 { int arr[T(__has_trivial_destructor(IntRef))]; } in has_trivial_destructor()
1704 { int arr[F(__has_nothrow_assign(IntRef))]; } in has_nothrow_assign()
1784 { int arr[T(__has_nothrow_copy(IntRef))]; } in has_nothrow_copy()
1834 { int arr[F(__has_nothrow_constructor(IntRef))]; } in has_nothrow_constructor()
1862 { int arr[F(__has_virtual_destructor(IntRef))]; } in has_virtual_destructor()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dtemp_arg_nontype_cxx20.cpp29 template<int &> struct IntRef {}; struct
30 using IPn = IntRef<*(&n + 1)>; // expected-error {{not a constant expression}} expected-note {{dere…
31 using IPn = IntRef<*(&n + 1)>; // expected-error {{not a constant expression}} expected-note {{dere…
33 using IP2 = IntRef<s.n[2]>; // FIXME expected-error {{refers to subobject}}
34 using IP2 = IntRef<*(s.n + 2)>; // FIXME expected-error {{refers to subobject}}
36 using IP3 = IntRef<s.n[3]>; // expected-error {{not a constant expression}} expected-note {{derefer…
37 using IP3 = IntRef<*(s.n + 3)>; // expected-error {{not a constant expression}} expected-note {{der…
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/PDB/Inputs/
H A DTypeQualsTest.cpp36 typedef int& IntRef; typedef
38 IntRef IVar = x;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/hicpp/
H A Dmultiway-paths-covered.cpp68 const int &IntRef = i; in bad_switch() local
69 switch (IntRef) { in bad_switch()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dloop-convert-extra.cpp162 struct IntRef { IntRef(); IntRef(const int& i); operator int*(); }; in aliasing() struct
164 IntRef Int(IntArr[I]); in aliasing()
179 IntRef Refs[N]; in aliasing()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DDIEHashTest.cpp134 DIEEntry IntRef(Int); in TEST_F() local
142 Member->addValue(Alloc, dwarf::DW_AT_type, dwarf::DW_FORM_ref4, IntRef); in TEST_F()
165 DIEEntry IntRef(Int); in TEST_F() local
173 Mem1->addValue(Alloc, dwarf::DW_AT_type, dwarf::DW_FORM_ref4, IntRef); in TEST_F()
182 Mem2->addValue(Alloc, dwarf::DW_AT_type, dwarf::DW_FORM_ref4, IntRef); in TEST_F()