clang 20.0.0git
|
DeclarationNameLoc - Additional source/type location info for a declaration name. More...
#include "clang/AST/DeclarationName.h"
Public Member Functions | |
DeclarationNameLoc (DeclarationName Name) | |
DeclarationNameLoc () | |
TypeSourceInfo * | getNamedTypeInfo () const |
Returns the source type info. | |
SourceLocation | getCXXOperatorNameBeginLoc () const |
Return the beginning location of the getCXXOperatorNameRange() range. | |
SourceLocation | getCXXOperatorNameEndLoc () const |
Return the end location of the getCXXOperatorNameRange() range. | |
SourceRange | getCXXOperatorNameRange () const |
Return the range of the operator name (without the operator keyword). | |
SourceLocation | getCXXLiteralOperatorNameLoc () const |
Return the location of the literal operator name (without the operator keyword). | |
Static Public Member Functions | |
static DeclarationNameLoc | makeNamedTypeLoc (TypeSourceInfo *TInfo) |
Construct location information for a constructor, destructor or conversion operator. | |
static DeclarationNameLoc | makeCXXOperatorNameLoc (SourceLocation BeginLoc, SourceLocation EndLoc) |
Construct location information for a non-literal C++ operator. | |
static DeclarationNameLoc | makeCXXOperatorNameLoc (SourceRange Range) |
Construct location information for a non-literal C++ operator. | |
static DeclarationNameLoc | makeCXXLiteralOperatorNameLoc (SourceLocation Loc) |
Construct location information for a literal C++ operator. | |
DeclarationNameLoc - Additional source/type location info for a declaration name.
Needs a DeclarationName in order to be interpreted correctly.
Definition at line 660 of file DeclarationName.h.
DeclarationNameLoc::DeclarationNameLoc | ( | DeclarationName | Name | ) |
Definition at line 379 of file DeclarationName.cpp.
References clang::DeclarationName::CXXConstructorName, clang::DeclarationName::CXXConversionFunctionName, clang::DeclarationName::CXXDeductionGuideName, clang::DeclarationName::CXXDestructorName, clang::DeclarationName::CXXLiteralOperatorName, clang::DeclarationName::CXXOperatorName, clang::DeclarationName::CXXUsingDirective, clang::DeclarationName::Identifier, clang::DeclarationName::ObjCMultiArgSelector, clang::DeclarationName::ObjCOneArgSelector, and clang::DeclarationName::ObjCZeroArgSelector.
|
inline |
Definition at line 706 of file DeclarationName.h.
References memset().
|
inline |
Return the location of the literal operator name (without the operator keyword).
Assumes that the object stores location information of a literal operator.
Definition at line 733 of file DeclarationName.h.
Referenced by clang::ASTRecordWriter::AddDeclarationNameLoc(), and clang::DeclarationNameInfo::getCXXLiteralOperatorNameLoc().
|
inline |
Return the beginning location of the getCXXOperatorNameRange() range.
Definition at line 713 of file DeclarationName.h.
|
inline |
Return the end location of the getCXXOperatorNameRange() range.
Definition at line 718 of file DeclarationName.h.
|
inline |
Return the range of the operator name (without the operator keyword).
Assumes that the object stores location information of a (non-literal) operator.
Definition at line 725 of file DeclarationName.h.
Referenced by clang::ASTRecordWriter::AddDeclarationNameLoc(), and clang::DeclarationNameInfo::getCXXOperatorNameRange().
|
inline |
Returns the source type info.
Assumes that the object stores location information of a constructor, destructor or conversion operator.
Definition at line 710 of file DeclarationName.h.
Referenced by clang::ASTRecordWriter::AddDeclarationNameLoc(), clang::DeclarationNameInfo::containsUnexpandedParameterPack(), clang::DeclarationNameInfo::getNamedTypeInfo(), clang::DeclarationNameInfo::isInstantiationDependent(), and clang::DeclarationNameInfo::printName().
|
inlinestatic |
Construct location information for a literal C++ operator.
Definition at line 759 of file DeclarationName.h.
References Loc.
Referenced by clang::ASTRecordReader::readDeclarationNameLoc().
|
inlinestatic |
Construct location information for a non-literal C++ operator.
Definition at line 746 of file DeclarationName.h.
Referenced by clang::Sema::CreateLambdaCallOperator(), clang::ASTContext::getNameForTemplate(), and clang::ASTRecordReader::readDeclarationNameLoc().
|
inlinestatic |
Construct location information for a non-literal C++ operator.
Definition at line 752 of file DeclarationName.h.
References Range.
|
inlinestatic |
Construct location information for a constructor, destructor or conversion operator.
Definition at line 739 of file DeclarationName.h.
Referenced by addBlockPointerConversion(), addFunctionPointerConversion(), and clang::ASTRecordReader::readDeclarationNameLoc().
struct CXXLitOpName clang::DeclarationNameLoc::CXXLiteralOperatorName |
Definition at line 689 of file DeclarationName.h.
struct CXXOpName clang::DeclarationNameLoc::CXXOperatorName |
Definition at line 688 of file DeclarationName.h.
struct NT clang::DeclarationNameLoc::NamedType |
Definition at line 687 of file DeclarationName.h.