clang API Documentation

Public Member Functions
clang::DeclFilterCCC< C > Class Template Reference

Simple template class for restricting typo correction candidates to ones having a single Decl* of the given type. More...

#include <TypoCorrection.h>

Inheritance diagram for clang::DeclFilterCCC< C >:
Inheritance graph
[legend]
Collaboration diagram for clang::DeclFilterCCC< C >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool ValidateCandidate (const TypoCorrection &candidate)
 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.

Detailed Description

template<class C>
class clang::DeclFilterCCC< C >

Simple template class for restricting typo correction candidates to ones having a single Decl* of the given type.

Definition at line 247 of file TypoCorrection.h.


Member Function Documentation

template<class C>
virtual bool clang::DeclFilterCCC< C >::ValidateCandidate ( const TypoCorrection candidate) [inline, 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.

Reimplemented from clang::CorrectionCandidateCallback.

Definition at line 249 of file TypoCorrection.h.

References clang::TypoCorrection::getCorrectionDeclAs().


The documentation for this class was generated from the following file: