Searched refs:TypoCorrection (Results 1 - 24 of 24) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DTypoCorrection.h1 //===- TypoCorrection.h - Class for typo correction results -----*- C++ -*-===//
9 // This file defines the TypoCorrection class, which stores the results of
42 class TypoCorrection { class in namespace:clang
59 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl, function in class:clang::TypoCorrection
68 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr, function in class:clang::TypoCorrection
76 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr, function in class:clang::TypoCorrection
81 TypoCorrection() = default;
178 /// declarations associated with the DeclarationName of this TypoCorrection
187 /// Returns whether this TypoCorrection has a non-empty DeclarationName
190 /// Mark this TypoCorrection a
[all...]
H A DSemaInternal.h86 typedef SmallVector<TypoCorrection, 1> TypoResultList;
107 ValidatedCorrections.push_back(TypoCorrection());
117 void addCorrection(TypoCorrection Correction);
136 return Normalized ? TypoCorrection::NormalizeEditDistance(BestED) : BestED;
149 /// empty TypoCorrection is returned once no more viable corrections remain
151 const TypoCorrection &getNextCorrection();
154 const TypoCorrection &getCurrentCorrection() {
164 const TypoCorrection &peekNextCorrection() {
166 const TypoCorrection &TC = getNextCorrection();
282 bool resolveCorrection(TypoCorrection
[all...]
H A DExternalSemaSource.h17 #include "clang/Sema/TypoCorrection.h"
203 virtual TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
209 return TypoCorrection();
H A DMultiplexExternalSemaSource.h337 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
H A DSema.h52 #include "clang/Sema/TypoCorrection.h"
3564 typedef std::function<void(const TypoCorrection &)> TypoDiagnosticGenerator;
3565 typedef std::function<ExprResult(Sema &, TypoExpr *, TypoCorrection)>
3700 TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,
3758 void diagnoseTypo(const TypoCorrection &Correction,
3762 void diagnoseTypo(const TypoCorrection &Correction,
3784 bool TypoCorrection = false);
4036 TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc,
4040 return TypoCorrection();
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
H A DMultiplexExternalSemaSource.cpp316 TypoCorrection MultiplexExternalSemaSource::CorrectTypo(
324 if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC,
329 return TypoCorrection();
H A DSemaLookup.cpp37 #include "clang/Sema/TypoCorrection.h"
4119 TypoCorrection &Candidate) {
4121 return Candidate.getEditDistance(false) != TypoCorrection::InvalidDistance;
4136 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) {
4137 TypoCorrection::decl_iterator DI = TC.begin(), DE = TC.end();
4164 TC = TypoCorrection();
4261 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED);
4269 void TypoCorrectionConsumer::addCorrection(TypoCorrection Correction) {
4344 const TypoCorrection &TypoCorrectionConsumer::getNextCorrection() {
4363 TypoCorrection T
[all...]
H A DSemaExprMember.cpp606 bool ValidateCandidate(const TypoCorrection &candidate) override {
706 [=, &SemaRef](const TypoCorrection &TC) {
720 [=](Sema &SemaRef, TypoExpr *TE, TypoCorrection TC) mutable {
1366 if (TypoCorrection Corrected = S.CorrectTypo(
H A DSemaCXXScopeSpec.cpp438 bool ValidateCandidate(const TypoCorrection &candidate) override {
623 if (TypoCorrection Corrected = CorrectTypo(
H A DSemaTemplateVariadic.cpp952 bool ValidateCandidate(const TypoCorrection &candidate) override {
997 if (TypoCorrection Corrected =
H A DSemaDeclObjC.cpp509 bool ValidateCandidate(const TypoCorrection &candidate) override {
558 if (TypoCorrection Corrected = CorrectTypo(
1300 TypoCorrection Corrected = CorrectTypo(
1349 bool ValidateCandidate(const TypoCorrection &candidate) override {
1682 TypoCorrection corrected =
1982 TypoCorrection Corrected =
H A DSemaExprCXX.cpp7780 const TypoCorrection &TC) {
7863 /// anything (having been passed an empty TypoCorrection).
7867 /// possible that the Consumer has a TypoCorrection that failed to ambiguity
7873 TypoCorrection TC = IsAmbiguous
7874 ? TypoCorrection() : State.Consumer->getCurrentCorrection();
7878 // TypoCorrection, replacing the existing decls. This ensures the right
7881 // had been stored in the TypoCorrection.
7923 // correction TreeTransform for which the corresponding TypoCorrection could
8033 TypoCorrection TC = SemaRef.getTypoExprState(TE).Consumer->peekNextCorrection();
8034 TypoCorrection Nex
[all...]
H A DSemaDecl.cpp78 bool ValidateCandidate(const TypoCorrection &candidate) override {
378 TypoCorrection Correction = CorrectTypo(Result.getLookupNameInfo(), Kind,
675 if (TypoCorrection Corrected =
950 if (TypoCorrection Corrected =
1961 if (TypoCorrection C =
8002 bool ValidateCandidate(const TypoCorrection &candidate) override {
8007 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(),
8059 TypoCorrection Correction;
8103 for (TypoCorrection::decl_iterator CDecl = Correction.begin(),
14306 TypoCorrection Correcte
[all...]
H A DSemaExprObjC.cpp1978 if (TypoCorrection Corrected = CorrectTypo(
2145 bool ValidateCandidate(const TypoCorrection &candidate) override {
2229 if (TypoCorrection Corrected = CorrectTypo(
H A DSemaTemplate.cpp510 if (TypoCorrection Corrected =
667 bool ValidateCandidate(const TypoCorrection &Candidate) override {
680 if (TypoCorrection Corrected = CorrectTypo(NameInfo, LookupKind, S, &SS, CCC,
3682 bool ValidateCandidate(const TypoCorrection &TC) override {
3691 TypoCorrection Corrected =
H A DSemaExpr.cpp1999 const TypoCorrection &TC, Sema &SemaRef, const CXXScopeSpec &SS,
2111 TypoCorrection Corrected;
2118 [=](const TypoCorrection &TC) {
5083 bool ValidateCandidate(const TypoCorrection &candidate) override {
5101 static TypoCorrection TryTypoCorrectionForCall(Sema &S, Expr *Fn,
5109 if (TypoCorrection Corrected = S.CorrectTypo(
5136 return TypoCorrection();
5172 TypoCorrection TC;
5210 TypoCorrection TC;
H A DSema.cpp41 #include "clang/Sema/TypoCorrection.h"
966 // We pass an empty TypoCorrection to indicate no correction was performed.
967 Typo.second.DiagHandler(TypoCorrection());
H A DSemaDeclCXX.cpp4036 bool ValidateCandidate(const TypoCorrection &candidate) override {
4179 TypoCorrection Corr;
10992 bool ValidateCandidate(const TypoCorrection &candidate) override {
11011 if (TypoCorrection Corrected =
11516 bool ValidateCandidate(const TypoCorrection &Candidate) override {
11740 if (TypoCorrection Corrected =
H A DSemaInit.cpp2304 bool ValidateCandidate(const TypoCorrection &candidate) override {
2532 if (TypoCorrection Corrected = SemaRef.CorrectTypo(
H A DSemaOpenMP.cpp2331 bool ValidateCandidate(const TypoCorrection &Candidate) override {
2353 bool ValidateCandidate(const TypoCorrection &Candidate) override {
2383 if (TypoCorrection Corrected =
16830 if (TypoCorrection Corrected =
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTUtils.h553 clang::TypoCorrection
560 if (clang::TypoCorrection C =
565 return clang::TypoCorrection();
/freebsd-12-stable/contrib/llvm-project/clang/lib/Parse/
H A DParseTentative.cpp1185 bool ValidateCandidate(const TypoCorrection &Candidate) override {
H A DParseExpr.cpp31 #include "clang/Sema/TypoCorrection.h"
682 bool ValidateCandidate(const TypoCorrection &candidate) override {
H A DParseStmt.cpp22 #include "clang/Sema/TypoCorrection.h"
131 bool ValidateCandidate(const TypoCorrection &candidate) override {

Completed in 785 milliseconds