|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/tools/extra/clangd/Selection.cpp 30 using Node = SelectionTree::Node;
440 void SelectionTree::print(llvm::raw_ostream &OS, const SelectionTree::Node &N,
451 for (const Node *Child : N.Children)
506 const Node *Ancestor = Root;
516 for (const Node* CurrentNode = this; CurrentNode != nullptr;
528 const SelectionTree::Node &SelectionTree::Node::ignoreImplicit() const {
535 const SelectionTree::Node &SelectionTree::Node::outerImplicit() const {
tools/clang/tools/extra/clangd/Selection.h 97 Node *Parent;
99 llvm::SmallVector<const Node *, 8> Children;
111 const Node& ignoreImplicit() const;
114 const Node& outerImplicit() const;
119 const Node *commonAncestor() const;
121 const Node &root() const { return *Root; }
124 std::deque<Node> Nodes; // Stable-pointer storage.
125 const Node *Root;
128 void print(llvm::raw_ostream &OS, const Node &N, int Indent) const;
tools/clang/tools/extra/clangd/SemanticSelection.cpp 43 for (const auto *Node = ST.commonAncestor(); Node != nullptr;
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp 85 const FunctionDecl *getSelectedFunction(const SelectionTree::Node *SelNode) {
91 if (const SelectionTree::Node *P = SelNode->Parent)
286 const SelectionTree::Node *SelNode = Sel.ASTSelection.commonAncestor();
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp 78 using Node = SelectionTree::Node;
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp 38 ExtractionContext(const SelectionTree::Node *Node, const SourceManager &SM,
41 const SelectionTree::Node *getExprNode() const { return ExprNode; }
55 const SelectionTree::Node *ExprNode;
86 ExtractionContext::ExtractionContext(const SelectionTree::Node *Node,
142 for (const SelectionTree::Node *CurNode = getExprNode();
205 llvm::SmallVector<const SelectionTree::Node*, 8> SelectedOperands;
208 bool parse(const SelectionTree::Node &N) {
227 for (const auto* Child : N.Children) {
256 for (const SelectionTree::Node *Child : SelectedOperands)
275 const SourceRange getBinaryOperatorRange(const SelectionTree::Node &N,
289 const SelectionTree::Node *Start = Op.SelectedOperands.front(); // LHS
290 const SelectionTree::Node *End = Op.SelectedOperands.back(); // RHS
323 const SelectionTree::Node *getCallExpr(const SelectionTree::Node *DeclRef) {
323 const SelectionTree::Node *getCallExpr(const SelectionTree::Node *DeclRef) {
324 const SelectionTree::Node &MaybeCallee = DeclRef->outerImplicit();
325 const SelectionTree::Node *MaybeCall = MaybeCallee.Parent;
364 bool eligibleForExtraction(const SelectionTree::Node *N) {
389 const SelectionTree::Node &OuterImplicit = N->outerImplicit();
403 const SelectionTree::Node *computeExtractedExpr(const SelectionTree::Node *N) {
403 const SelectionTree::Node *computeExtractedExpr(const SelectionTree::Node *N) {
406 const SelectionTree::Node *TargetNode = N;
413 if (const SelectionTree::Node *Call = getCallExpr(N))
454 if (const SelectionTree::Node *N =
tools/clang/tools/extra/clangd/refactor/tweaks/RawStringLiteral.cpp 81 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor();
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp 87 bool isTopLevelDecl(const SelectionTree::Node *Node) {
tools/clang/tools/extra/clangd/refactor/tweaks/SwapIfBranches.cpp 51 for (const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor();
tools/clang/tools/extra/clangd/unittests/FindTargetTests.cpp 82 const SelectionTree::Node *N = Selection.commonAncestor();
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp 39 Range nodeRange(const SelectionTree::Node *N, ParsedAST &AST) {
55 std::string nodeKind(const SelectionTree::Node *N) {
59 std::vector<const SelectionTree::Node *> allNodes(const SelectionTree &T) {
60 std::vector<const SelectionTree::Node *> Result = {&T.root()};
62 const SelectionTree::Node *N = Result[I];
70 bool verifyCommonAncestor(const SelectionTree::Node &Root,
71 const SelectionTree::Node *Common,
78 for (const SelectionTree::Node *Child : Root.Children)
374 for (const SelectionTree::Node *N : allNodes(T))
412 const SelectionTree::Node *Str = T.commonAncestor();
usr/include/c++/7.4.0/bits/alloc_traits.h 387 using allocator_type = allocator<_Tp>;
389 using value_type = _Tp;
392 using pointer = _Tp*;
395 using const_pointer = const _Tp*;
474 construct(allocator_type& __a, _Up* __p, _Args&&... __args)
486 destroy(allocator_type& __a, _Up* __p)
usr/include/c++/7.4.0/bits/allocator.h 108 class allocator: public __allocator_base<_Tp>
113 typedef _Tp* pointer;
114 typedef const _Tp* const_pointer;
115 typedef _Tp& reference;
116 typedef const _Tp& const_reference;
117 typedef _Tp value_type;
137 allocator(const allocator<_Tp1>&) throw() { }
usr/include/c++/7.4.0/bits/move.h 46 inline _GLIBCXX_CONSTEXPR _Tp*
47 __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
usr/include/c++/7.4.0/bits/ptr_traits.h 126 typedef _Tp* pointer;
128 typedef _Tp element_type;
141 pointer_to(__make_not_void<element_type>& __r) noexcept
141 pointer_to(__make_not_void<element_type>& __r) noexcept
usr/include/c++/7.4.0/bits/stl_construct.h 97 _Destroy(_Tp* __pointer)
204 allocator<_Tp>&)
usr/include/c++/7.4.0/bits/stl_deque.h 120 using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_to<_CvTp>>;
122 typedef __iter<_Tp> iterator;
123 typedef __iter<const _Tp> const_iterator;
124 typedef __ptr_to<_Tp> _Elt_pointer;
129 { return __deque_buf_size(sizeof(_Tp)); }
132 typedef _Tp value_type;
267 operator==(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x,
268 const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) _GLIBCXX_NOEXCEPT
274 operator==(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x,
275 const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) _GLIBCXX_NOEXCEPT
350 inline typename _Deque_iterator<_Tp, _Ref, _Ptr>::difference_type
351 operator-(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x,
352 const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) _GLIBCXX_NOEXCEPT
355 (_Deque_iterator<_Tp, _Ref, _Ptr>::_S_buffer_size())
362 inline typename _Deque_iterator<_Tp, _RefL, _PtrL>::difference_type
363 operator-(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x,
364 const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) _GLIBCXX_NOEXCEPT
464 rebind<_Tp>::other _Tp_alloc_type;
487 typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator;
487 typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator;
488 typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator;
488 typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator;
602 return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp)));
609 _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp)));
684 const size_t __num_nodes = (__num_elements/ __deque_buf_size(sizeof(_Tp))
715 % __deque_buf_size(sizeof(_Tp)));
831 class deque : protected _Deque_base<_Tp, _Alloc>
842 typedef _Deque_base<_Tp, _Alloc> _Base;
848 typedef _Tp value_type;
863 { return __deque_buf_size(sizeof(_Tp)); }
2069 const std::allocator<_Tp>&)
usr/include/c++/7.4.0/bits/stl_iterator_base_types.h 181 typedef _Tp value_type;
183 typedef _Tp* pointer;
184 typedef _Tp& reference;
usr/include/c++/7.4.0/ext/alloc_traits.h 117 { typedef typename _Base_type::template rebind_alloc<_Tp> other; };
usr/include/c++/7.4.0/ext/new_allocator.h 63 typedef _Tp* pointer;
64 typedef const _Tp* const_pointer;
65 typedef _Tp& reference;
66 typedef const _Tp& const_reference;
67 typedef _Tp value_type;
84 new_allocator(const new_allocator<_Tp1>&) _GLIBCXX_USE_NOEXCEPT { }
111 return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
130 { return size_t(-1) / sizeof(_Tp); }
135 construct(_Up* __p, _Args&&... __args)
136 { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
140 destroy(_Up* __p) { __p->~_Up(); }
usr/include/c++/7.4.0/initializer_list 50 typedef _E value_type;
51 typedef const _E& reference;
52 typedef const _E& const_reference;
54 typedef const _E* iterator;
55 typedef const _E* const_iterator;
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
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
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
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
1554 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1659 { typedef _Tp&& type; };
1955 { typedef _Tp type; };
2171 { typedef _Iffalse type; };