Lines Matching defs:Sel
62 const Tweak::Selection &Sel) {
63 assert(Sel.FS);
64 if (auto Source = getCorrespondingHeaderOrSource(FileName, Sel.FS))
66 return getCorrespondingHeaderOrSource(FileName, *Sel.AST, Sel.Index);
430 bool prepare(const Selection &Sel) override {
431 SameFile = !isHeaderFile(Sel.AST->tuPath(), Sel.AST->getLangOpts());
432 Source = getSelectedFunction(Sel.ASTSelection.commonAncestor());
490 Expected<Effect> apply(const Selection &Sel) override {
491 const SourceManager &SM = Sel.AST->getSourceManager();
492 auto CCFile = SameFile ? Sel.AST->tuPath().str()
493 : getSourceFile(Sel.AST->tuPath(), Sel);
496 assert(Sel.FS && "FS Must be set in apply");
497 auto Buffer = Sel.FS->getBufferForFile(*CCFile);
503 auto InsertionPoint = getInsertionPoint(Contents, Sel);
508 Source, InsertionPoint->EnclosingNamespace, Sel.AST->getTokens(),
509 Sel.AST->getHeuristicResolver(),
510 SameFile && isHeaderFile(Sel.AST->tuPath(), Sel.AST->getLangOpts()));
523 Sel.AST->getSourceManager(),
525 SM, Sel.AST->getLangOpts(),
526 getDeletionRange(Source, Sel.AST->getTokens()))),
531 deleteTokensWithKind(Sel.AST->getTokens(), tok::kw_inline,
561 const Selection &Sel) {
570 const auto &TokBuf = Sel.AST->getTokens();
581 unsigned Offset = Sel.AST->getSourceManager()
591 Contents, Source->getQualifiedNameAsString(), Sel.AST->getLangOpts());