Lines Matching defs:TypoExprs

8692   llvm::SmallSetVector<TypoExpr *, 2> &TypoExprs;
8695 explicit FindTypoExprs(llvm::SmallSetVector<TypoExpr *, 2> &TypoExprs)
8696 : TypoExprs(TypoExprs) {}
8698 TypoExprs.insert(TE);
8709 llvm::SmallSetVector<TypoExpr *, 2> TypoExprs, AmbiguousTypoExprs;
8713 /// Emit diagnostics for all of the TypoExprs encountered.
8715 /// If the TypoExprs were successfully corrected, then the diagnostics should
8724 for (TypoExpr *TE : TypoExprs) {
8751 /// Any substitution attempts for the previous TypoExprs (which must have been
8761 for (auto *TE : TypoExprs) {
8798 // Since correcting typos may intoduce new TypoExprs, this function
8799 // checks for new TypoExprs and recurses if it finds any. Note that it will
8805 // Check to see if any new TypoExprs were created. If so, we need to recurse
8809 auto SavedTypoExprs = std::move(TypoExprs);
8811 TypoExprs.clear();
8814 FindTypoExprs(TypoExprs).TraverseStmt(FixedExpr);
8815 if (!TypoExprs.empty()) {
8816 // Recurse to handle newly created TypoExprs. If we're not able to
8817 // handle them, discard these TypoExprs.
8823 // them to the TypoExprs set. Remove them from Sema's TypoExpr list
8825 // TypoExprs were created recursively and thus won't be in our
8826 // Sema's TypoExprs - they were created in our `RecursiveTransformLoop`.
8827 auto &SemaTypoExprs = SemaRef.TypoExprs;
8828 for (auto *TE : TypoExprs) {
8838 // TypoExpr is valid: add newly created TypoExprs since we were
8841 SavedTypoExprs.set_union(TypoExprs);
8845 TypoExprs = std::move(SavedTypoExprs);
8858 auto SavedTypoExprs = std::move(SemaRef.TypoExprs);
8859 SemaRef.TypoExprs.clear();
8874 // The transform was invalid, see if we have any TypoExprs with untried
8885 // Ensure none of the TypoExprs have multiple typo correction candidates
8923 // Wipe away any newly created TypoExprs that we don't know about. Since we
8924 // clear any invalid TypoExprs in `CheckForRecursiveTypos`, this is only
8927 auto &SemaTypoExprs = SemaRef.TypoExprs;
8930 auto FI = find(TypoExprs, TE);
8931 if (FI != TypoExprs.end()) {
8938 SemaRef.TypoExprs = std::move(SavedTypoExprs);
8974 FindTypoExprs(TypoExprs).TraverseStmt(E);
8986 if (!TypoExprs.insert(E) && !CacheEntry.isUnset()) {