class UnresolvedUsingIfExistsDecl

Declaration

class UnresolvedUsingIfExistsDecl : public NamedDecl { /* full declaration omitted */ };

Description

This node is generated when a using-declaration that was annotated with __attribute__((using_if_exists)) failed to resolve to a known declaration. In that case, Sema builds a UsingShadowDecl whose target is an instance of this declaration, adding it to the current scope. Referring to this declaration in any way is an error.

Declared at: clang/include/clang/AST/DeclCXX.h:3925

Inherits from: NamedDecl

Member Variables

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • public static clang::UnresolvedUsingIfExistsDecl * Create(clang::ASTContext & Ctx, clang::DeclContext * DC, clang::SourceLocation Loc, clang::DeclarationName Name)
  • public static clang::UnresolvedUsingIfExistsDecl * CreateDeserialized(clang::ASTContext & Ctx, unsigned int ID)
  • private UnresolvedUsingIfExistsDecl(clang::DeclContext * DC, clang::SourceLocation Loc, clang::DeclarationName Name)
  • private void anchor()
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)

Inherited from NamedDecl:

Inherited from Decl:

Methods

static clang::UnresolvedUsingIfExistsDecl* Create(
    clang::ASTContext& Ctx,
    clang::DeclContext* DC,
    clang::SourceLocation Loc,
    clang::DeclarationName Name)

Declared at: clang/include/clang/AST/DeclCXX.h:3932

Parameters

clang::ASTContext& Ctx
clang::DeclContext* DC
clang::SourceLocation Loc
clang::DeclarationName Name

static clang::UnresolvedUsingIfExistsDecl*
CreateDeserialized(clang::ASTContext& Ctx,
                   unsigned int ID)

Declared at: clang/include/clang/AST/DeclCXX.h:3935

Parameters

clang::ASTContext& Ctx
unsigned int ID

UnresolvedUsingIfExistsDecl(
    clang::DeclContext* DC,
    clang::SourceLocation Loc,
    clang::DeclarationName Name)

Declared at: clang/include/clang/AST/DeclCXX.h:3926

Parameters

clang::DeclContext* DC
clang::SourceLocation Loc
clang::DeclarationName Name

void anchor()

Declared at: clang/include/clang/AST/DeclCXX.h:3929

static bool classof(const clang::Decl* D)

Declared at: clang/include/clang/AST/DeclCXX.h:3938

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

Declared at: clang/include/clang/AST/DeclCXX.h:3939

Parameters

clang::Decl::Kind K