Lines Matching defs:TypoExprs

8841   llvm::SmallSetVector<TypoExpr *, 2> &TypoExprs;
8844 explicit FindTypoExprs(llvm::SmallSetVector<TypoExpr *, 2> &TypoExprs)
8845 : TypoExprs(TypoExprs) {}
8847 TypoExprs.insert(TE);
8858 llvm::SmallSetVector<TypoExpr *, 2> TypoExprs, AmbiguousTypoExprs;
8862 /// Emit diagnostics for all of the TypoExprs encountered.
8864 /// If the TypoExprs were successfully corrected, then the diagnostics should
8873 for (TypoExpr *TE : TypoExprs) {
8900 /// Any substitution attempts for the previous TypoExprs (which must have been
8910 for (auto *TE : TypoExprs) {
8947 // Since correcting typos may intoduce new TypoExprs, this function
8948 // checks for new TypoExprs and recurses if it finds any. Note that it will
8954 // Check to see if any new TypoExprs were created. If so, we need to recurse
8958 auto SavedTypoExprs = std::move(TypoExprs);
8960 TypoExprs.clear();
8963 FindTypoExprs(TypoExprs).TraverseStmt(FixedExpr);
8964 if (!TypoExprs.empty()) {
8965 // Recurse to handle newly created TypoExprs. If we're not able to
8966 // handle them, discard these TypoExprs.
8972 // them to the TypoExprs set. Remove them from Sema's TypoExpr list
8974 // TypoExprs were created recursively and thus won't be in our
8975 // Sema's TypoExprs - they were created in our `RecursiveTransformLoop`.
8976 auto &SemaTypoExprs = SemaRef.TypoExprs;
8977 for (auto *TE : TypoExprs) {
8987 // TypoExpr is valid: add newly created TypoExprs since we were
8990 SavedTypoExprs.set_union(TypoExprs);
8994 TypoExprs = std::move(SavedTypoExprs);
9007 auto SavedTypoExprs = std::move(SemaRef.TypoExprs);
9008 SemaRef.TypoExprs.clear();
9023 // The transform was invalid, see if we have any TypoExprs with untried
9034 // Ensure none of the TypoExprs have multiple typo correction candidates
9072 // Wipe away any newly created TypoExprs that we don't know about. Since we
9073 // clear any invalid TypoExprs in `CheckForRecursiveTypos`, this is only
9076 auto &SemaTypoExprs = SemaRef.TypoExprs;
9079 auto FI = find(TypoExprs, TE);
9080 if (FI != TypoExprs.end()) {
9087 SemaRef.TypoExprs = std::move(SavedTypoExprs);
9123 FindTypoExprs(TypoExprs).TraverseStmt(E);
9135 if (!TypoExprs.insert(E) && !CacheEntry.isUnset()) {