Lines Matching full:selection
35 /// of the cursor or overlap with the selection range.
39 ASTSelectionFinder(SourceRange Selection, FileID TargetFile, in ASTSelectionFinder() argument
42 SelectionBegin(Selection.getBegin()), in ASTSelectionFinder()
43 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder()
45 : Selection.getEnd()), in ASTSelectionFinder()
65 // a meaningful selection tree. in TraversePseudoObjectExpr()
105 // Stop early when we've reached a declaration after the selection. in TraverseDecl()
147 // Do a quick check when the selection is of length 0. in selectionKindFor()
159 // Ensure there's at least some overlap with the 'start'/'end' selection in selectionKindFor()
192 "selection range must span one file"); in findSelectedASTNodes()
204 return "contains-selection"; in selectionKindToString()
206 return "contains-selection-start"; in selectionKindToString()
208 return "contains-selection-end"; in selectionKindToString()
212 llvm_unreachable("invalid selection kind"); in selectionKindToString()
233 /// selection kind.
236 /// "None" selection kind.
254 /// Canonicalizes the given selection by selecting different related AST nodes
291 assert(S && "non statement selection!"); in canonicalize()
318 /// Finds the set of bottom-most selected AST nodes that are in the selection
319 /// tree with the specified selection kind.
321 /// For example, given the following selection tree:
323 /// FunctionDecl "f" contains-selection
324 /// CompoundStmt contains-selection [#1]
330 /// FunctionDecl "f2" contains-selection
331 /// CompoundStmt contains-selection [#2]
381 // Code range is selected when the selection range is not empty. in create()
387 // We are looking for a selection in one body of code, so let's focus on in create()
404 // FIXME (Alex L): Tweak selection rules for compound statements, see: in create()
420 // Scan through the parents (bottom-to-top) and check if the selection is in isInFunctionLikeBodyOfCode()
431 // int m = /*selection:*/ 1 + 2 /*selection end*/; }; }; in isInFunctionLikeBodyOfCode()