|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/Tooling/Refactoring/ASTSelection.h 51 SourceSelectionKind SelectionKind;
55 SourceSelectionKind SelectionKind)
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp 51 SourceSelectionKind::None));
95 SourceSelectionKind SelectionKind =
123 SourceSelectionKind SelectionKind =
133 void popAndAddToSelectionIfSelected(SourceSelectionKind SelectionKind) {
136 if (SelectionKind != SourceSelectionKind::None || !Node.Children.empty())
140 SourceSelectionKind selectionKindFor(CharSourceRange Range) {
146 return SourceSelectionKind::None;
150 return SourceSelectionKind::ContainsSelection;
151 return SourceSelectionKind::None;
156 return SourceSelectionKind::ContainsSelection;
159 return SourceSelectionKind::InsideSelection;
163 return SourceSelectionKind::ContainsSelectionStart;
165 return SourceSelectionKind::ContainsSelectionEnd;
167 return SourceSelectionKind::None;
200 static const char *selectionKindToString(SourceSelectionKind Kind) {
202 case SourceSelectionKind::None:
204 case SourceSelectionKind::ContainsSelection:
206 case SourceSelectionKind::ContainsSelectionStart:
208 case SourceSelectionKind::ContainsSelectionEnd:
210 case SourceSelectionKind::InsideSelection:
239 SourceSelectionKind Kind) {
244 if (Child.SelectionKind == SourceSelectionKind::None)
344 SourceSelectionKind Kind,
374 SourceSelectionKind Kind) {
387 SourceSelectionKind::ContainsSelection);
tools/clang/unittests/Tooling/ASTSelectionTest.cpp 91 SourceSelectionKind SelectionKind, unsigned NumChildren) {
105 checkNode(const SelectedASTNode &StmtNode, SourceSelectionKind SelectionKind,
116 checkNode(const SelectedASTNode &DeclNode, SourceSelectionKind SelectionKind,
131 SourceSelectionKind SelectionKind) {
141 void shouldHaveSelectionKind(SourceSelectionKind Kind) {
160 checkNode<TranslationUnitDecl>(*Node, SourceSelectionKind::None,
163 SourceSelectionKind::ContainsSelection,
189 SourceSelectionKind::ContainsSelection,
204 Node->Children[0], SourceSelectionKind::ContainsSelection,
207 SourceSelectionKind::InsideSelection);
209 Fn.Children[1], SourceSelectionKind::InsideSelection,
212 Body.Children[0], SourceSelectionKind::InsideSelection,
215 SourceSelectionKind::InsideSelection,
218 SourceSelectionKind::InsideSelection);
228 Node->Children[0], SourceSelectionKind::ContainsSelection,
231 Fn.Children[1], SourceSelectionKind::ContainsSelectionEnd,
234 SourceSelectionKind::InsideSelection,
244 Node->Children[0], SourceSelectionKind::ContainsSelection,
247 Fn.Children[0], SourceSelectionKind::ContainsSelection,
250 SourceSelectionKind::InsideSelection,
260 Node->Children[0], SourceSelectionKind::ContainsSelection,
263 SourceSelectionKind::ContainsSelectionStart);
265 Fn.Children[1], SourceSelectionKind::InsideSelection,
268 SourceSelectionKind::InsideSelection,
284 SourceSelectionKind::InsideSelection,
287 SourceSelectionKind::InsideSelection,
314 Node->Children[0], SourceSelectionKind::ContainsSelection,
317 Fn.Children[0], SourceSelectionKind::ContainsSelection,
320 SourceSelectionKind::InsideSelection,
322 .shouldHaveSelectionKind(SourceSelectionKind::InsideSelection);
324 SourceSelectionKind::InsideSelection,
326 .shouldHaveSelectionKind(SourceSelectionKind::InsideSelection);
335 Node->Children[0], SourceSelectionKind::ContainsSelection,
338 Fn.Children[0], SourceSelectionKind::ContainsSelection,
341 SourceSelectionKind::InsideSelection,
344 SourceSelectionKind::InsideSelection,
347 SourceSelectionKind::InsideSelection,
357 Node->Children[0], SourceSelectionKind::ContainsSelection,
360 Fn.Children[0], SourceSelectionKind::ContainsSelection,
363 SourceSelectionKind::ContainsSelectionStart,
366 SourceSelectionKind::InsideSelection,
369 SourceSelectionKind::InsideSelection,
372 SourceSelectionKind::ContainsSelectionEnd,
405 Node->Children[0], SourceSelectionKind::ContainsSelection,
408 Impl.Children[0], SourceSelectionKind::ContainsSelection,
411 SourceSelectionKind::ContainsSelection);
421 Node->Children[0], SourceSelectionKind::ContainsSelection,
424 Impl.Children[0], SourceSelectionKind::ContainsSelection,
427 SourceSelectionKind::ContainsSelection);
437 Node->Children[0], SourceSelectionKind::ContainsSelectionStart,
440 Impl.Children[0], SourceSelectionKind::InsideSelection,
443 SourceSelectionKind::InsideSelection);
445 Node->Children[1], SourceSelectionKind::ContainsSelectionEnd,
448 Cat.Children[0], SourceSelectionKind::InsideSelection,
451 SourceSelectionKind::InsideSelection);
461 SourceSelectionKind::ContainsSelection,
487 Node->Children[0], SourceSelectionKind::ContainsSelection,
490 SourceSelectionKind::ContainsSelection,
513 Node->Children[0], SourceSelectionKind::InsideSelection,
516 SourceSelectionKind::InsideSelection);
534 SourceSelectionKind::ContainsSelection);
544 Node->Children[0], SourceSelectionKind::ContainsSelection,
547 SourceSelectionKind::ContainsSelection,
578 CS.Children[0], SourceSelectionKind::ContainsSelection,
581 CCast.Children[0], SourceSelectionKind::ContainsSelection,
584 POE.Children[0], SourceSelectionKind::ContainsSelection,
587 PRE.Children[0], SourceSelectionKind::InsideSelection,
590 SourceSelectionKind::InsideSelection);
599 CS.Children[0], SourceSelectionKind::ContainsSelection,
602 POE.Children[0], SourceSelectionKind::ContainsSelection,
605 BinOp.Children[0], SourceSelectionKind::InsideSelection,
608 PRE.Children[0], SourceSelectionKind::InsideSelection,
611 SourceSelectionKind::InsideSelection);
613 SourceSelectionKind::InsideSelection);
622 CS.Children[0], SourceSelectionKind::ContainsSelection,
625 CCast.Children[0], SourceSelectionKind::ContainsSelection,
628 POE.Children[0], SourceSelectionKind::ContainsSelection,
631 SRE.Children[0], SourceSelectionKind::InsideSelection,
634 SourceSelectionKind::InsideSelection);
636 SourceSelectionKind::InsideSelection);
645 CS.Children[0], SourceSelectionKind::ContainsSelection,
648 POE.Children[0], SourceSelectionKind::ContainsSelection,
651 BinOp.Children[0], SourceSelectionKind::InsideSelection,
654 SRE.Children[0], SourceSelectionKind::InsideSelection,
657 SourceSelectionKind::InsideSelection);
659 SRE.Children[1], SourceSelectionKind::InsideSelection,
662 POE2.Children[0], SourceSelectionKind::InsideSelection,
665 PRE.Children[0], SourceSelectionKind::InsideSelection,
668 SourceSelectionKind::InsideSelection);
670 SourceSelectionKind::InsideSelection);
utils/unittest/googletest/include/gtest/gtest-printers.h 140 static void PrintValue(const T& value, ::std::ostream* os) {
205 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
206 TypeWithoutFormatter<T,
207 (internal::IsAProtocolMessage<T>::value ? kProtobuf :
208 internal::ImplicitlyConvertible<const T&, internal::BiggestInt>::value ?
223 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
276 static ::std::string Format(const ToPrint& value) {
351 const T1& value, const T2& /* other_operand */) {
351 const T1& value, const T2& /* other_operand */) {
352 return FormatForComparison<T1, T2>::Format(value);
352 return FormatForComparison<T1, T2>::Format(value);
366 void UniversalPrint(const T& value, ::std::ostream* os);
373 const C& container, ::std::ostream* os) {
439 const T& value, ::std::ostream* os) {
455 void PrintTo(const T& value, ::std::ostream* os) {
478 DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
699 static void Print(const T& value, ::std::ostream* os) {
784 static void Print(const T& value, ::std::ostream* os) {
856 typedef T T1;
983 internal::UniversalTersePrinter<T>::Print(value, &ss);
utils/unittest/googletest/include/gtest/gtest.h 1377 const T1& lhs, const T2& rhs) {
1377 const T1& lhs, const T2& rhs) {
1389 const T1& lhs,
1390 const T2& rhs) {
1419 const T1& lhs,
1420 const T2& rhs) {
utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h 29 static const T& printable(const T& V) { return V; }
29 static const T& printable(const T& V) { return V; }
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
37 return StreamSwitch<T>::printable(V);
utils/unittest/googletest/include/gtest/internal/gtest-internal.h 94 ::std::string PrintToString(const T& value);