class TypoCorrectionConsumer::NamespaceSpecifierSet

Declaration

class TypoCorrectionConsumer::NamespaceSpecifierSet { /* full declaration omitted */ };

Declared at: clang/include/clang/Sema/SemaInternal.h:212

Member Variables

private clang::ASTContext& Context
private clang::TypoCorrectionConsumer:: NamespaceSpecifierSet::DeclContextList CurContextChain
private std::string CurNameSpecifier
private SmallVector<const clang::IdentifierInfo*, 4> CurContextIdentifiers
private SmallVector<const clang::IdentifierInfo*, 4> CurNameSpecifierIdentifiers
private std::map<unsigned int, SpecifierInfoList> DistanceMap

Method Overview

  • public NamespaceSpecifierSet(clang::ASTContext & Context, clang::DeclContext * CurContext, clang::CXXScopeSpec * CurScopeSpec)
  • public void addNameSpecifier(clang::DeclContext * Ctx)
  • public clang::TypoCorrectionConsumer::NamespaceSpecifierSet::iterator begin()
  • private static clang::TypoCorrectionConsumer::NamespaceSpecifierSet::DeclContextList buildContextChain(clang::DeclContext * Start)
  • private unsigned int buildNestedNameSpecifier(clang::TypoCorrectionConsumer::NamespaceSpecifierSet::DeclContextList & DeclChain, clang::NestedNameSpecifier *& NNS)
  • public clang::TypoCorrectionConsumer::NamespaceSpecifierSet::iterator end()

Methods

NamespaceSpecifierSet(
    clang::ASTContext& Context,
    clang::DeclContext* CurContext,
    clang::CXXScopeSpec* CurScopeSpec)

Declared at: clang/include/clang/Sema/SemaInternal.h:238

Parameters

clang::ASTContext& Context
clang::DeclContext* CurContext
clang::CXXScopeSpec* CurScopeSpec

void addNameSpecifier(clang::DeclContext* Ctx)

Description

Add the DeclContext (a namespace or record) to the set, computing the corresponding NestedNameSpecifier and its distance in the process.

Declared at: clang/include/clang/Sema/SemaInternal.h:243

Parameters

clang::DeclContext* Ctx

clang::TypoCorrectionConsumer::
    NamespaceSpecifierSet::iterator
    begin()

Declared at: clang/include/clang/Sema/SemaInternal.h:277

static clang::TypoCorrectionConsumer::
    NamespaceSpecifierSet::DeclContextList
    buildContextChain(clang::DeclContext* Start)

Description

Helper for building the list of DeclContexts between the current context and the top of the translation unit

Declared at: clang/include/clang/Sema/SemaInternal.h:232

Parameters

clang::DeclContext* Start

unsigned int buildNestedNameSpecifier(
    clang::TypoCorrectionConsumer::
        NamespaceSpecifierSet::DeclContextList&
            DeclChain,
    clang::NestedNameSpecifier*& NNS)

Declared at: clang/include/clang/Sema/SemaInternal.h:234

Parameters

clang::TypoCorrectionConsumer:: NamespaceSpecifierSet::DeclContextList& DeclChain
clang::NestedNameSpecifier*& NNS

clang::TypoCorrectionConsumer::
    NamespaceSpecifierSet::iterator
    end()

Declared at: clang/include/clang/Sema/SemaInternal.h:278