clang API Documentation
#include <TypoCorrection.h>
Public Member Functions | |
NoTypoCorrectionCCC () | |
bool | ValidateCandidate (const TypoCorrection &candidate) override |
Simple predicate used by the default RankCandidate to determine whether to return an edit distance of 0 or InvalidDistance. This can be overrided by validators that only need to determine if a candidate is viable, without ranking potentially viable candidates. Only ValidateCandidate or RankCandidate need to be overriden by a callback wishing to check the viability of correction candidates. The default predicate always returns true if the candidate is not a type name or keyword, true for types if WantTypeSpecifiers is true, and true for keywords if WantTypeSpecifiers, WantExpressionKeywords, WantCXXNamedCasts, WantRemainingKeywords, or WantObjCSuper is true. |
Definition at line 344 of file TypoCorrection.h.
clang::NoTypoCorrectionCCC::NoTypoCorrectionCCC | ( | ) | [inline] |
Definition at line 346 of file TypoCorrection.h.
References clang::CorrectionCandidateCallback::WantCXXNamedCasts, clang::CorrectionCandidateCallback::WantExpressionKeywords, clang::CorrectionCandidateCallback::WantFunctionLikeCasts, clang::CorrectionCandidateCallback::WantRemainingKeywords, and clang::CorrectionCandidateCallback::WantTypeSpecifiers.
bool clang::NoTypoCorrectionCCC::ValidateCandidate | ( | const TypoCorrection & | candidate | ) | [inline, override, virtual] |
Simple predicate used by the default RankCandidate to determine whether to return an edit distance of 0 or InvalidDistance. This can be overrided by validators that only need to determine if a candidate is viable, without ranking potentially viable candidates. Only ValidateCandidate or RankCandidate need to be overriden by a callback wishing to check the viability of correction candidates. The default predicate always returns true if the candidate is not a type name or keyword, true for types if WantTypeSpecifiers is true, and true for keywords if WantTypeSpecifiers, WantExpressionKeywords, WantCXXNamedCasts, WantRemainingKeywords, or WantObjCSuper is true.
Reimplemented from clang::CorrectionCandidateCallback.
Definition at line 354 of file TypoCorrection.h.