Lines Matching full:selection
36 /// of the cursor or overlap with the selection range.
40 ASTSelectionFinder(SourceRange Selection, FileID TargetFile, in ASTSelectionFinder() argument
43 SelectionBegin(Selection.getBegin()), in ASTSelectionFinder()
44 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder()
46 : Selection.getEnd()), in ASTSelectionFinder()
66 // a meaningful selection tree. in TraversePseudoObjectExpr()
106 // Stop early when we've reached a declaration after the selection. in TraverseDecl()
148 // Do a quick check when the selection is of length 0. in selectionKindFor()
160 // Ensure there's at least some overlap with the 'start'/'end' selection in selectionKindFor()
193 "selection range must span one file"); in findSelectedASTNodes()
205 return "contains-selection"; in selectionKindToString()
207 return "contains-selection-start"; in selectionKindToString()
209 return "contains-selection-end"; in selectionKindToString()
213 llvm_unreachable("invalid selection kind"); in selectionKindToString()
234 /// selection kind.
237 /// "None" selection kind.
255 /// Canonicalizes the given selection by selecting different related AST nodes
292 assert(S && "non statement selection!"); in canonicalize()
319 /// Finds the set of bottom-most selected AST nodes that are in the selection
320 /// tree with the specified selection kind.
322 /// For example, given the following selection tree:
324 /// FunctionDecl "f" contains-selection
325 /// CompoundStmt contains-selection [#1]
331 /// FunctionDecl "f2" contains-selection
332 /// CompoundStmt contains-selection [#2]
382 // Code range is selected when the selection range is not empty. in create()
388 // We are looking for a selection in one body of code, so let's focus on in create()
405 // FIXME (Alex L): Tweak selection rules for compound statements, see: in create()
421 // Scan through the parents (bottom-to-top) and check if the selection is in isInFunctionLikeBodyOfCode()
432 // int m = /*selection:*/ 1 + 2 /*selection end*/; }; }; in isInFunctionLikeBodyOfCode()