|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/Optional.h 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 {
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) && {
275 T getValueOr(U &&value) && {
276 return hasValue() ? std::move(getValue()) : std::forward<U>(value);
282 bool operator==(const Optional<T> &X, const Optional<U> &Y) {
282 bool operator==(const Optional<T> &X, const Optional<U> &Y) {
289 bool operator!=(const Optional<T> &X, const Optional<U> &Y) {
289 bool operator!=(const Optional<T> &X, const Optional<U> &Y) {
316 bool operator==(const Optional<T> &X, NoneType) {
321 bool operator==(NoneType, const Optional<T> &X) {
326 bool operator!=(const Optional<T> &X, NoneType) {
331 bool operator!=(NoneType, const Optional<T> &X) {
include/llvm/ADT/STLExtras.h 1002 std::is_same<T, U>::value || is_one_of<T, Ts...>::value;
1002 std::is_same<T, U>::value || is_one_of<T, Ts...>::value;
include/llvm/Support/FormatVariadic.h 253 inline auto formatv(const char *Fmt, Ts &&... Vals) -> formatv_object<decltype(
include/llvm/Support/FormatVariadicDetails.h 48 explicit stream_operator_format_adapter(T &&Item)
145 build_format_adapter(T &&Item) {
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/tools/extra/clangd/ClangdLSPServer.cpp 100 for (int KindValue = 0; KindValue <= (int)HighlightingKind::LastKind;
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp 38 llvm::Optional<HighlightingKind> kindForType(const Type *TP);
39 llvm::Optional<HighlightingKind> kindForDecl(const NamedDecl *D) {
49 return HighlightingKind::Typedef;
58 return HighlightingKind::Class;
62 return HighlightingKind::Class;
64 return MD->isStatic() ? HighlightingKind::StaticMethod
65 : HighlightingKind::Method;
67 return HighlightingKind::Field;
69 return HighlightingKind::Enum;
71 return HighlightingKind::EnumConstant;
73 return HighlightingKind::Parameter;
76 ? HighlightingKind::StaticField
77 : VD->isLocalVarDecl() ? HighlightingKind::LocalVariable
78 : HighlightingKind::Variable;
80 return HighlightingKind::Variable;
82 return HighlightingKind::Function;
85 return HighlightingKind::Namespace;
88 return HighlightingKind::TemplateParameter;
91 llvm::Optional<HighlightingKind> kindForType(const Type *TP) {
95 return HighlightingKind::Primitive;
105 llvm::Optional<HighlightingKind>
107 llvm::Optional<HighlightingKind> Result;
132 Tokens.push_back({HighlightingKind::Macro, M});
177 .getValueOr(HighlightingKind::DependentName));
183 addToken(E->getLocation(), HighlightingKind::DependentName);
189 addToken(E->getMemberLoc(), HighlightingKind::DependentName);
232 addToken(L.getNameLoc(), HighlightingKind::DependentType);
237 addToken(TL.getBeginLoc(), HighlightingKind::TemplateParameter);
245 addToken(NNSLoc.getLocalBeginLoc(), HighlightingKind::Namespace);
271 void addToken(SourceLocation Loc, HighlightingKind Kind) {
361 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, HighlightingKind K) {
363 case HighlightingKind::Variable:
365 case HighlightingKind::LocalVariable:
367 case HighlightingKind::Parameter:
369 case HighlightingKind::Function:
371 case HighlightingKind::Method:
373 case HighlightingKind::StaticMethod:
375 case HighlightingKind::Field:
377 case HighlightingKind::StaticField:
379 case HighlightingKind::Class:
381 case HighlightingKind::Enum:
383 case HighlightingKind::EnumConstant:
385 case HighlightingKind::Typedef:
387 case HighlightingKind::DependentType:
389 case HighlightingKind::DependentName:
391 case HighlightingKind::Namespace:
393 case HighlightingKind::TemplateParameter:
395 case HighlightingKind::Primitive:
397 case HighlightingKind::Macro:
493 llvm::StringRef toTextMateScope(HighlightingKind Kind) {
496 case HighlightingKind::Function:
498 case HighlightingKind::Method:
500 case HighlightingKind::StaticMethod:
502 case HighlightingKind::Variable:
504 case HighlightingKind::LocalVariable:
506 case HighlightingKind::Parameter:
508 case HighlightingKind::Field:
510 case HighlightingKind::StaticField:
512 case HighlightingKind::Class:
514 case HighlightingKind::Enum:
516 case HighlightingKind::EnumConstant:
518 case HighlightingKind::Typedef:
520 case HighlightingKind::DependentType:
522 case HighlightingKind::DependentName:
524 case HighlightingKind::Namespace:
526 case HighlightingKind::TemplateParameter:
528 case HighlightingKind::Primitive:
530 case HighlightingKind::Macro:
tools/clang/tools/extra/clangd/SemanticHighlighting.h 49 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, HighlightingKind K);
53 HighlightingKind Kind;
74 llvm::StringRef toTextMateScope(HighlightingKind Kind);
tools/clang/tools/extra/clangd/unittests/SemanticHighlightingTests.cpp 30 makeHighlightingTokens(llvm::ArrayRef<Range> Ranges, HighlightingKind Kind) {
41 static const std::map<HighlightingKind, std::string> KindToString{
42 {HighlightingKind::Variable, "Variable"},
43 {HighlightingKind::LocalVariable, "LocalVariable"},
44 {HighlightingKind::Parameter, "Parameter"},
45 {HighlightingKind::Function, "Function"},
46 {HighlightingKind::Class, "Class"},
47 {HighlightingKind::Enum, "Enum"},
48 {HighlightingKind::Namespace, "Namespace"},
49 {HighlightingKind::EnumConstant, "EnumConstant"},
50 {HighlightingKind::Field, "Field"},
51 {HighlightingKind::StaticField, "StaticField"},
52 {HighlightingKind::Method, "Method"},
53 {HighlightingKind::StaticMethod, "StaticMethod"},
54 {HighlightingKind::Typedef, "Typedef"},
55 {HighlightingKind::DependentType, "DependentType"},
56 {HighlightingKind::DependentName, "DependentName"},
57 {HighlightingKind::TemplateParameter, "TemplateParameter"},
58 {HighlightingKind::Primitive, "Primitive"},
59 {HighlightingKind::Macro, "Macro"}};
651 {{HighlightingKind::Variable,
653 {HighlightingKind::Function,
656 {{HighlightingKind::Variable,
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) noexcept
usr/include/c++/7.4.0/bits/stl_function.h 121 typedef _Arg1 first_argument_type;
124 typedef _Arg2 second_argument_type;
381 struct less : public binary_function<_Tp, _Tp, bool>
381 struct less : public binary_function<_Tp, _Tp, bool>
385 operator()(const _Tp& __x, const _Tp& __y) const
385 operator()(const _Tp& __x, const _Tp& __y) const
usr/include/c++/7.4.0/bits/stl_map.h 102 typedef _Key key_type;
104 typedef std::pair<const _Key, _Tp> value_type;
usr/include/c++/7.4.0/bits/stl_pair.h 114 return __and_<is_constructible<_T1, _U1&&>,
121 return __and_<is_convertible<_U1&&, _T1>,
142 using __do_converts = __and_<is_convertible<_U1&&, _T1>,
147 return __and_<is_constructible<_T1, _U1&&>,
311 constexpr pair(_U1&& __x, const _T2& __y)
341 constexpr pair(_U1&& __x, _U2&& __y)
342 : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
usr/include/c++/7.4.0/bits/stl_tree.h 563 typedef _Key key_type;
758 static const _Key&
782 static const _Key&
894 const _Key& __k);
898 const _Key& __k) const;
902 const _Key& __k);
906 const _Key& __k) const;
usr/include/c++/7.4.0/tuple 125 constexpr _Head_base(const _Head& __h)
132 constexpr _Head_base(_UHead&& __h)
159 static constexpr _Head&
162 static constexpr const _Head&
210 constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail)
216 constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail)
242 _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a)
248 const _Head& __head, const _Tail&... __tail)
350 static constexpr _Head&
353 static constexpr const _Head&
360 constexpr _Tuple_impl(const _Head& __head)
365 constexpr _Tuple_impl(_UHead&& __head)
390 const _Head& __head)
473 return __and_<is_constructible<_Elements, const _UElements&>...>::value;
479 return __and_<is_convertible<const _UElements&, _Elements>...>::value;
485 return __and_<is_constructible<_Elements, _UElements&&>...>::value;
491 return __and_<is_convertible<_UElements&&, _Elements>...>::value;
947 constexpr tuple(const _T1& __a1, const _T2& __a2)
956 explicit constexpr tuple(const _T1& __a1, const _T2& __a2)
971 constexpr tuple(_U1&& __a1, _U2&& __a2)
1066 tuple(allocator_arg_t __tag, const _Alloc& __a)
1078 const _T1& __a1, const _T2& __a2)
1090 const _T1& __a1, const _T2& __a2)
1302 constexpr _Head&
1307 constexpr const _Head&
1313 constexpr __tuple_element_t<__i, tuple<_Elements...>>&
1319 constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
1325 constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
usr/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
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
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
762 typename add_rvalue_reference<_Tp>::type declval() noexcept;
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
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>
1246 : public is_nothrow_constructible<_Tp, _Tp&&>
1538 typedef decltype(__test<_From, _To>(0)) type;
1545 : public __is_convertible_helper<_From, _To>::type
1554 { typedef _Tp type; };
1558 { 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; };
1664 : public __add_rvalue_reference_helper<_Tp>