reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
144 T value; 160 explicit OptionalStorage(in_place_t, Args &&... args) 161 : value(std::forward<Args>(args)...), hasVal(true) {} 172 T &getValue() LLVM_LVALUE_FUNCTION noexcept { 176 T const &getValue() const LLVM_LVALUE_FUNCTION noexcept { 181 T &&getValue() && noexcept { 216 optional_detail::OptionalStorage<T> Storage; 219 using value_type = T; 224 Optional(const T &y) : Storage(optional_detail::in_place_t{}, y) {} 227 Optional(T &&y) : Storage(optional_detail::in_place_t{}, std::move(y)) {} 230 Optional &operator=(T &&y) { 241 static inline Optional create(const T *y) { 245 Optional &operator=(const T &y) { 253 const T *getPointer() const { return &Storage.getValue(); } 254 T *getPointer() { return &Storage.getValue(); } 255 const T &getValue() const LLVM_LVALUE_FUNCTION { return Storage.getValue(); } 256 T &getValue() LLVM_LVALUE_FUNCTION { return Storage.getValue(); } 260 const T *operator->() const { return getPointer(); } 261 T *operator->() { return getPointer(); } 262 const T &operator*() const LLVM_LVALUE_FUNCTION { return getValue(); } 263 T &operator*() LLVM_LVALUE_FUNCTION { return getValue(); } 266 constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION { 271 T &&getValue() && { return std::move(Storage.getValue()); } 272 T &&operator*() && { return std::move(Storage.getValue()); } 275 T getValueOr(U &&value) && {include/llvm/Support/type_traits.h
91 T t; 122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{}); 122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{}); 122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{}); 130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{}); 130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{}); 130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{}); 145 std::is_copy_constructible<detail::trivial_helper<T>>::value; 147 !std::is_copy_constructible<T>::value; 151 std::is_move_constructible<detail::trivial_helper<T>>::value; 153 !std::is_move_constructible<T>::value; 157 is_copy_assignable<detail::trivial_helper<T>>::value; 159 !is_copy_assignable<T>::value; 163 is_move_assignable<detail::trivial_helper<T>>::value; 165 !is_move_assignable<T>::value; 169 std::is_destructible<detail::trivial_helper<T>>::value;tools/clang/include/clang/AST/FormatString.h
399 LengthModifier LM; 414 void setLengthModifier(LengthModifier lm) { 432 const LengthModifier &getLengthModifier() const { 459 Optional<LengthModifier> getCorrectedLengthModifier() const; 467 static bool namedTypeToLengthModifier(QualType QT, LengthModifier &LM);tools/clang/lib/AST/FormatString.cpp
216 LengthModifier::Kind lmKind = LengthModifier::None; 216 LengthModifier::Kind lmKind = LengthModifier::None; 225 lmKind = LengthModifier::AsChar; 228 lmKind = LengthModifier::AsShortLong; 230 lmKind = LengthModifier::AsShort; 237 lmKind = LengthModifier::AsLongLong; 239 lmKind = LengthModifier::AsLong; 242 case 'j': lmKind = LengthModifier::AsIntMax; ++I; break; 243 case 'z': lmKind = LengthModifier::AsSizeT; ++I; break; 244 case 't': lmKind = LengthModifier::AsPtrDiff; ++I; break; 245 case 'L': lmKind = LengthModifier::AsLongDouble; ++I; break; 246 case 'q': lmKind = LengthModifier::AsQuad; ++I; break; 254 lmKind = LengthModifier::AsAllocate; 262 lmKind = LengthModifier::AsMAllocate; 273 lmKind = LengthModifier::AsInt64; 281 lmKind = LengthModifier::AsInt32; 286 lmKind = LengthModifier::AsInt3264; 289 lmKind = LengthModifier::AsWide; ++I; break; 291 LengthModifier lm(lmPosition, lmKind); 723 case LengthModifier::None: 727 case LengthModifier::AsShort: 745 case LengthModifier::AsChar: 746 case LengthModifier::AsLongLong: 747 case LengthModifier::AsQuad: 748 case LengthModifier::AsIntMax: 749 case LengthModifier::AsSizeT: 750 case LengthModifier::AsPtrDiff: 770 case LengthModifier::AsShortLong: 774 case LengthModifier::AsLong: // or AsWideChar 805 case LengthModifier::AsLongDouble: 829 case LengthModifier::AsAllocate: 839 case LengthModifier::AsMAllocate: 850 case LengthModifier::AsInt32: 851 case LengthModifier::AsInt3264: 852 case LengthModifier::AsInt64: 864 case LengthModifier::AsWide: 881 case LengthModifier::None: 882 case LengthModifier::AsChar: 883 case LengthModifier::AsShort: 884 case LengthModifier::AsLong: 885 case LengthModifier::AsLongLong: 886 case LengthModifier::AsIntMax: 887 case LengthModifier::AsSizeT: 888 case LengthModifier::AsPtrDiff: 889 case LengthModifier::AsLongDouble: 891 case LengthModifier::AsAllocate: 892 case LengthModifier::AsMAllocate: 893 case LengthModifier::AsQuad: 894 case LengthModifier::AsInt32: 895 case LengthModifier::AsInt3264: 896 case LengthModifier::AsInt64: 897 case LengthModifier::AsWide: 898 case LengthModifier::AsShortLong: // ??? 949 if (LM.getKind() == LengthModifier::AsLongDouble) { 965 Optional<LengthModifier> FormatSpecifier::getCorrectedLengthModifier() const { 967 if (LM.getKind() == LengthModifier::AsLongDouble || 968 LM.getKind() == LengthModifier::AsQuad) { 969 LengthModifier FixedLM(LM); 970 FixedLM.setKind(LengthModifier::AsLongLong); 979 LengthModifier &LM) { 986 LM.setKind(LengthModifier::AsSizeT); 990 LM.setKind(LengthModifier::AsSizeT); 993 LM.setKind(LengthModifier::AsIntMax); 996 LM.setKind(LengthModifier::AsIntMax); 999 LM.setKind(LengthModifier::AsPtrDiff);tools/clang/lib/AST/PrintfFormatString.cpp
491 case LengthModifier::None: 493 case LengthModifier::AsLong: 494 case LengthModifier::AsWide: 496 case LengthModifier::AsShort: 506 case LengthModifier::AsLongDouble: 509 case LengthModifier::None: 510 case LengthModifier::AsShortLong: 512 case LengthModifier::AsInt32: 514 case LengthModifier::AsChar: 516 case LengthModifier::AsShort: return Ctx.ShortTy; 517 case LengthModifier::AsLong: return Ctx.LongTy; 518 case LengthModifier::AsLongLong: 519 case LengthModifier::AsQuad: 521 case LengthModifier::AsInt64: 523 case LengthModifier::AsIntMax: 525 case LengthModifier::AsSizeT: 527 case LengthModifier::AsInt3264: 531 case LengthModifier::AsPtrDiff: 534 case LengthModifier::AsAllocate: 535 case LengthModifier::AsMAllocate: 536 case LengthModifier::AsWide: 542 case LengthModifier::AsLongDouble: 545 case LengthModifier::None: 546 case LengthModifier::AsShortLong: 548 case LengthModifier::AsInt32: 550 case LengthModifier::AsChar: return Ctx.UnsignedCharTy; 551 case LengthModifier::AsShort: return Ctx.UnsignedShortTy; 552 case LengthModifier::AsLong: return Ctx.UnsignedLongTy; 553 case LengthModifier::AsLongLong: 554 case LengthModifier::AsQuad: 556 case LengthModifier::AsInt64: 558 case LengthModifier::AsIntMax: 560 case LengthModifier::AsSizeT: 562 case LengthModifier::AsInt3264: 566 case LengthModifier::AsPtrDiff: 569 case LengthModifier::AsAllocate: 570 case LengthModifier::AsMAllocate: 571 case LengthModifier::AsWide: 578 case LengthModifier::AsShort: 580 case LengthModifier::AsShortLong: 582 case LengthModifier::AsLong: 588 if (LM.getKind() == LengthModifier::AsLongDouble) 595 case LengthModifier::None: 597 case LengthModifier::AsChar: 599 case LengthModifier::AsShort: 601 case LengthModifier::AsLong: 603 case LengthModifier::AsLongLong: 604 case LengthModifier::AsQuad: 606 case LengthModifier::AsIntMax: 608 case LengthModifier::AsSizeT: 610 case LengthModifier::AsPtrDiff: 612 case LengthModifier::AsLongDouble: 614 case LengthModifier::AsAllocate: 615 case LengthModifier::AsMAllocate: 616 case LengthModifier::AsInt32: 617 case LengthModifier::AsInt3264: 618 case LengthModifier::AsInt64: 619 case LengthModifier::AsWide: 621 case LengthModifier::AsShortLong: 628 if (LM.getKind() == LengthModifier::AsWideChar) { 634 if (LM.getKind() == LengthModifier::AsWide) 642 LM.getKind() == LengthModifier::AsShort) 649 LM.getKind() == LengthModifier::AsShort) 703 LM.setKind(LengthModifier::None); 718 LM.setKind(LengthModifier::AsWideChar); 720 LM.setKind(LengthModifier::None); 805 LengthModifier::None : LengthModifier::AsShortLong); 805 LengthModifier::None : LengthModifier::AsShortLong); 809 LengthModifier::None : LengthModifier::AsLong); 809 LengthModifier::None : LengthModifier::AsLong); 815 LM.setKind(LengthModifier::AsChar); 820 LM.setKind(LengthModifier::AsShort); 825 LM.setKind(LengthModifier::AsLong); 830 LM.setKind(LengthModifier::AsLongLong); 834 LM.setKind(LengthModifier::AsLongDouble); 871 LM.setKind(LengthModifier::None);tools/clang/lib/AST/ScanfFormatString.cpp
237 case LengthModifier::None: 239 case LengthModifier::AsChar: 241 case LengthModifier::AsShort: 243 case LengthModifier::AsLong: 245 case LengthModifier::AsLongLong: 246 case LengthModifier::AsQuad: 248 case LengthModifier::AsInt64: 250 case LengthModifier::AsIntMax: 252 case LengthModifier::AsSizeT: 254 case LengthModifier::AsPtrDiff: 256 case LengthModifier::AsLongDouble: 259 case LengthModifier::AsAllocate: 260 case LengthModifier::AsMAllocate: 261 case LengthModifier::AsInt32: 262 case LengthModifier::AsInt3264: 263 case LengthModifier::AsWide: 264 case LengthModifier::AsShortLong: 277 case LengthModifier::None: 279 case LengthModifier::AsChar: 281 case LengthModifier::AsShort: 283 case LengthModifier::AsLong: 285 case LengthModifier::AsLongLong: 286 case LengthModifier::AsQuad: 288 case LengthModifier::AsInt64: 290 case LengthModifier::AsIntMax: 292 case LengthModifier::AsSizeT: 294 case LengthModifier::AsPtrDiff: 297 case LengthModifier::AsLongDouble: 300 case LengthModifier::AsAllocate: 301 case LengthModifier::AsMAllocate: 302 case LengthModifier::AsInt32: 303 case LengthModifier::AsInt3264: 304 case LengthModifier::AsWide: 305 case LengthModifier::AsShortLong: 320 case LengthModifier::None: 322 case LengthModifier::AsLong: 324 case LengthModifier::AsLongDouble: 335 case LengthModifier::None: 337 case LengthModifier::AsLong: 338 case LengthModifier::AsWide: 340 case LengthModifier::AsAllocate: 341 case LengthModifier::AsMAllocate: 343 case LengthModifier::AsShort: 354 case LengthModifier::None: 355 case LengthModifier::AsWide: 357 case LengthModifier::AsAllocate: 358 case LengthModifier::AsMAllocate: 360 case LengthModifier::AsShort: 375 case LengthModifier::None: 377 case LengthModifier::AsChar: 379 case LengthModifier::AsShort: 381 case LengthModifier::AsLong: 383 case LengthModifier::AsLongLong: 384 case LengthModifier::AsQuad: 386 case LengthModifier::AsInt64: 388 case LengthModifier::AsIntMax: 390 case LengthModifier::AsSizeT: 392 case LengthModifier::AsPtrDiff: 394 case LengthModifier::AsLongDouble: 396 case LengthModifier::AsAllocate: 397 case LengthModifier::AsMAllocate: 398 case LengthModifier::AsInt32: 399 case LengthModifier::AsInt3264: 400 case LengthModifier::AsWide: 401 case LengthModifier::AsShortLong: 441 LM.setKind(LengthModifier::AsWideChar); 443 LM.setKind(LengthModifier::None); 462 LM.setKind(LengthModifier::None); 470 LM.setKind(LengthModifier::AsChar); 476 LM.setKind(LengthModifier::AsShort); 483 LM.setKind(LengthModifier::AsLong); 489 LM.setKind(LengthModifier::AsLongLong); 494 LM.setKind(LengthModifier::AsLongDouble);tools/clang/lib/Sema/SemaChecking.cpp
7356 const LengthModifier &LM = FS.getLengthModifier(); 7360 Optional<LengthModifier> FixedLM = FS.getCorrectedLengthModifier(); 7389 const LengthModifier &LM = FS.getLengthModifier(); 7393 Optional<LengthModifier> FixedLM = FS.getCorrectedLengthModifier();tools/clang/tools/extra/clang-tidy/cert/StrToNumCheck.cpp
81 case analyze_scanf::LengthModifier::AsLongLong: 84 case analyze_scanf::LengthModifier::AsIntMax: 93 case analyze_scanf::LengthModifier::AsLongLong: 96 case analyze_scanf::LengthModifier::AsIntMax: 105 case analyze_scanf::LengthModifier::AsLongDouble: 108 case analyze_scanf::LengthModifier::AsLong:usr/include/c++/7.4.0/bits/move.h
72 constexpr _Tp&& 73 forward(typename std::remove_reference<_Tp>::type& __t) noexcept 83 constexpr _Tp&& 84 forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 98 move(_Tp&& __t) noexceptusr/include/c++/7.4.0/type_traits
215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type 326 : public __is_integral_helper<typename remove_cv<_Tp>::type>::type 354 : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type 381 : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type 567 : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type 581 : public __or_<is_lvalue_reference<_Tp>, 582 is_rvalue_reference<_Tp>>::type 588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type 588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type 601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>, 601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>, 602 is_void<_Tp>>>::type 611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>, 611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>, 611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>, 612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 631 : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type 638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type 638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type 777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>> 777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>> 798 typedef decltype(__test<_Tp>(0)) type; 811 remove_all_extents<_Tp>::type>::type 825 : public __is_destructible_safe<_Tp>::type 984 typedef decltype(__test<_Tp, _Arg>(0)) type; 989 : public __and_<is_destructible<_Tp>, 990 __is_direct_constructible_impl<_Tp, _Arg>> 1072 __is_direct_constructible_ref_cast<_Tp, _Arg>, 1073 __is_direct_constructible_new_safe<_Tp, _Arg> 1079 : public __is_direct_constructible_new<_Tp, _Arg>::type 1119 : public __is_direct_constructible<_Tp, _Arg> 1130 : public __is_constructible_impl<_Tp, _Args...>::type 1142 : public is_constructible<_Tp, const _Tp&> 1142 : public is_constructible<_Tp, const _Tp&> 1148 : public __is_copy_constructible_impl<_Tp> 1160 : public is_constructible<_Tp, _Tp&&> 1160 : public is_constructible<_Tp, _Tp&&> 1166 : public __is_move_constructible_impl<_Tp> 1554 { typedef _Tp type; }; 1563 { typedef _Tp type; }; 1574 remove_const<typename remove_volatile<_Tp>::type>::type type; 1629 { typedef _Tp type; }; 1633 { typedef _Tp type; }; 1659 { typedef _Tp&& type; }; 1955 { typedef _Tp type; };