class DefaultFilterCCC

Declaration

class DefaultFilterCCC : public CorrectionCandidateCallback { /* full declaration omitted */ };

Description

Base class for callback objects used by Sema::CorrectTypo to check the validity of a potential typo correction.

Declared at: clang/include/clang/Sema/TypoCorrection.h:352

Inherits from: CorrectionCandidateCallback

Member Variables

Inherited from CorrectionCandidateCallback:

public WantTypeSpecifiers = true
public WantExpressionKeywords = true
public WantCXXNamedCasts = true
public WantFunctionLikeCasts = true
public WantRemainingKeywords = true
public WantObjCSuper = false
public IsObjCIvarLookup = false
public IsAddressOfOperand = false
protected Typo
protected TypoNNS
public static InvalidDistance = TypoCorrection::InvalidDistance

Method Overview

  • public DefaultFilterCCC(clang::IdentifierInfo * Typo = nullptr, clang::NestedNameSpecifier * TypoNNS = nullptr)
  • public std::unique_ptr<CorrectionCandidateCallback> clone()

Inherited from CorrectionCandidateCallback:

Methods

DefaultFilterCCC(
    clang::IdentifierInfo* Typo = nullptr,
    clang::NestedNameSpecifier* TypoNNS = nullptr)

Declared at: clang/include/clang/Sema/TypoCorrection.h:354

Parameters

clang::IdentifierInfo* Typo = nullptr
clang::NestedNameSpecifier* TypoNNS = nullptr

std::unique_ptr<CorrectionCandidateCallback>
clone()

Description

Clone this CorrectionCandidateCallback. CorrectionCandidateCallbacks are initially stack-allocated. However in case where delayed typo-correction is done we need to move the callback to storage with a longer lifetime. Every class deriving from CorrectionCandidateCallback must implement this method.

Declared at: clang/include/clang/Sema/TypoCorrection.h:358