clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::UnresolvedUsingValueDecl Class Reference

Represents a dependent using declaration which was not marked with typename. More...

#include <DeclCXX.h>

Inheritance diagram for clang::UnresolvedUsingValueDecl:
Inheritance graph
[legend]
Collaboration diagram for clang::UnresolvedUsingValueDecl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

SourceLocation getUsingLoc () const
 Returns the source location of the 'using' keyword.
void setUsingLoc (SourceLocation L)
 Set the source location of the 'using' keyword.
bool isAccessDeclaration () const
 Return true if it is a C++03 access declaration (no 'using').
NestedNameSpecifierLoc getQualifierLoc () const
 Retrieve the nested-name-specifier that qualifies the name, with source-location information.
NestedNameSpecifiergetQualifier () const
 Retrieve the nested-name-specifier that qualifies the name.
DeclarationNameInfo getNameInfo () const
SourceRange getSourceRange () const override LLVM_READONLY
 Source range that this declaration covers.
UnresolvedUsingValueDeclgetCanonicalDecl () override
 Retrieves the canonical declaration of this declaration.
const UnresolvedUsingValueDeclgetCanonicalDecl () const

Static Public Member Functions

static UnresolvedUsingValueDeclCreate (ASTContext &C, DeclContext *DC, SourceLocation UsingLoc, NestedNameSpecifierLoc QualifierLoc, const DeclarationNameInfo &NameInfo)
static UnresolvedUsingValueDeclCreateDeserialized (ASTContext &C, unsigned ID)
static bool classof (const Decl *D)
static bool classofKind (Kind K)

Friends

class ASTDeclReader
class ASTDeclWriter

Detailed Description

Represents a dependent using declaration which was not marked with typename.

Unlike non-dependent using declarations, these *only* bring through non-types; otherwise they would break two-phase lookup.

 template \<class T> class A : public Base<T> {
   using Base<T>::foo;
 };

Definition at line 3009 of file DeclCXX.h.


Member Function Documentation

static bool clang::UnresolvedUsingValueDecl::classof ( const Decl D) [inline, static]

Reimplemented from clang::ValueDecl.

Definition at line 3074 of file DeclCXX.h.

References classofKind(), and clang::Decl::getKind().

static bool clang::UnresolvedUsingValueDecl::classofKind ( Kind  K) [inline, static]

Reimplemented from clang::ValueDecl.

Definition at line 3075 of file DeclCXX.h.

Referenced by classof().

Definition at line 2117 of file DeclCXX.cpp.

References AttributeLangSupport::C.

Retrieves the canonical declaration of this declaration.

Reimplemented from clang::Decl.

Definition at line 3067 of file DeclCXX.h.

References clang::Mergeable< UnresolvedUsingValueDecl >::getFirstDecl().

Reimplemented from clang::Decl.

Definition at line 3070 of file DeclCXX.h.

References clang::Mergeable< UnresolvedUsingValueDecl >::getFirstDecl().

Definition at line 3052 of file DeclCXX.h.

References clang::NamedDecl::getDeclName(), and clang::Decl::getLocation().

Referenced by getSourceRange().

Retrieve the nested-name-specifier that qualifies the name.

Definition at line 3048 of file DeclCXX.h.

References clang::NestedNameSpecifierLoc::getNestedNameSpecifier().

Retrieve the nested-name-specifier that qualifies the name, with source-location information.

Definition at line 3045 of file DeclCXX.h.

Referenced by getSourceRange(), and clang::ASTDeclWriter::VisitUnresolvedUsingValueDecl().

Source range that this declaration covers.

Reimplemented from clang::Decl.

Definition at line 2124 of file DeclCXX.cpp.

References clang::NestedNameSpecifierLoc::getBeginLoc(), getNameInfo(), getQualifierLoc(), and isAccessDeclaration().

Returns the source location of the 'using' keyword.

Definition at line 3035 of file DeclCXX.h.

Referenced by clang::ASTDeclWriter::VisitUnresolvedUsingValueDecl().

Return true if it is a C++03 access declaration (no 'using').

Definition at line 3041 of file DeclCXX.h.

References clang::SourceLocation::isInvalid().

Referenced by getSourceRange().

Set the source location of the 'using' keyword.

Definition at line 3038 of file DeclCXX.h.

Referenced by clang::ASTDeclReader::VisitUnresolvedUsingValueDecl().


Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::Decl.

Definition at line 3077 of file DeclCXX.h.

friend class ASTDeclWriter [friend]

Reimplemented from clang::Decl.

Definition at line 3078 of file DeclCXX.h.


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