clang
19.0.0git
|
A factory class to build DeclarationFragments for different kinds of Decl. More...
#include "clang/ExtractAPI/DeclarationFragments.h"
A factory class to build DeclarationFragments for different kinds of Decl.
Definition at line 294 of file DeclarationFragments.h.
|
inlinestatic |
Definition at line 305 of file DeclarationFragments.h.
References clang::AS_none, clang::AS_private, clang::AS_protected, clang::AS_public, and clang::Decl::getAccess().
|
static |
Definition at line 1233 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), getFragmentsForCXXClass(), clang::extractapi::DeclarationFragments::Keyword, clang::extractapi::DeclarationFragments::pop_back(), and clang::extractapi::DeclarationFragments::Text.
|
static |
Definition at line 1212 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), getFragmentsForCXXClass(), clang::extractapi::DeclarationFragments::Keyword, clang::extractapi::DeclarationFragments::pop_back(), and clang::extractapi::DeclarationFragments::Text.
|
static |
Definition at line 1171 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::extractapi::DeclarationFragments::Identifier, clang::extractapi::DeclarationFragments::Keyword, and clang::extractapi::DeclarationFragments::Text.
|
static |
Definition at line 907 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::extractapi::DeclarationFragments::Keyword, clang::extractapi::DeclarationFragments::Text, and clang::extractapi::DeclarationFragments::TypeIdentifier.
|
static |
Definition at line 821 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::extractapi::DeclarationFragments::getStructureTypeFragment(), and clang::extractapi::DeclarationFragments::Identifier.
Referenced by getFragmentsForClassTemplatePartialSpecialization(), and getFragmentsForClassTemplateSpecialization().
|
static |
Definition at line 866 of file DeclarationFragments.cpp.
|
static |
Build DeclarationFragments for an enum declaration EnumDecl.
Definition at line 758 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), clang::EnumDecl::getIntegerType(), clang::NamedDecl::getName(), clang::TagDecl::getTypedefNameForAnonDecl(), clang::extractapi::DeclarationFragments::Identifier, clang::QualType::isNull(), clang::extractapi::DeclarationFragments::Keyword, and clang::extractapi::DeclarationFragments::Text.
|
static |
Build DeclarationFragments for an enum constant declaration EnumConstantDecl.
Definition at line 750 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::NamedDecl::getName(), and clang::extractapi::DeclarationFragments::Identifier.
|
static |
Build DeclarationFragments for a field declaration FieldDecl.
Definition at line 785 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::extractapi::DeclarationFragments::Identifier, and clang::extractapi::DeclarationFragments::Keyword.
|
static |
Build DeclarationFragments for a function declaration FunctionDecl.
Definition at line 676 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Func, clang::extractapi::DeclarationFragments::getExceptionSpecificationString(), clang::extractapi::DeclarationFragments::Identifier, clang::extractapi::DeclarationFragments::Keyword, clang::SC_Auto, clang::SC_Extern, clang::SC_None, clang::SC_PrivateExtern, clang::SC_Register, clang::SC_Static, and clang::extractapi::DeclarationFragments::Text.
Referenced by getFragmentsForFunctionTemplate(), and getFragmentsForFunctionTemplateSpecialization().
|
static |
Definition at line 1299 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getAsFunction(), getFragmentsForFunction(), clang::extractapi::DeclarationFragments::Keyword, and clang::extractapi::DeclarationFragments::Text.
|
static |
Definition at line 1316 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSpace(), getFragmentsForFunction(), clang::extractapi::DeclarationFragments::Keyword, and clang::extractapi::DeclarationFragments::Text.
|
static |
Build DeclarationFragments for a macro.
Name | name of the macro. |
MD | the associated MacroDirective. |
Definition at line 1328 of file DeclarationFragments.cpp.
|
static |
Definition at line 509 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::extractapi::DeclarationFragments::Identifier, and clang::extractapi::DeclarationFragments::Keyword.
|
static |
Build DeclarationFragments for an Objective-C category declaration ObjCCategoryDecl.
Definition at line 1358 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSpace(), Category, clang::index::generateUSRForDecl(), clang::extractapi::DeclarationFragments::Identifier, clang::Interface, clang::extractapi::DeclarationFragments::Keyword, clang::extractapi::DeclarationFragments::Text, and clang::extractapi::DeclarationFragments::TypeIdentifier.
|
static |
Build DeclarationFragments for an Objective-C interface declaration ObjCInterfaceDecl.
Definition at line 1379 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSpace(), clang::index::generateUSRForDecl(), clang::extractapi::DeclarationFragments::Identifier, clang::Interface, clang::extractapi::DeclarationFragments::Keyword, clang::extractapi::DeclarationFragments::Text, and clang::extractapi::DeclarationFragments::TypeIdentifier.
|
static |
Build DeclarationFragments for an Objective-C method declaration ObjCMethodDecl.
Definition at line 1401 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), clang::Selector::getNameForSlot(), clang::Selector::getNumArgs(), clang::ObjCMethodDecl::getParamDecl(), clang::ObjCMethodDecl::getReturnType(), clang::ObjCMethodDecl::getSelector(), clang::extractapi::DeclarationFragments::Identifier, clang::ObjCMethodDecl::isClassMethod(), clang::ObjCMethodDecl::isInstanceMethod(), clang::ObjCMethodDecl::param_size(), and clang::extractapi::DeclarationFragments::Text.
|
static |
Build DeclarationFragments for an Objective-C property declaration ObjCPropertyDecl.
Definition at line 1445 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::First, clang::getNullabilitySpelling(), clang::extractapi::DeclarationFragments::Identifier, clang::extractapi::DeclarationFragments::Keyword, clang::ObjCPropertyAttribute::kind_assign, clang::ObjCPropertyAttribute::kind_atomic, clang::ObjCPropertyAttribute::kind_class, clang::ObjCPropertyAttribute::kind_copy, clang::ObjCPropertyAttribute::kind_direct, clang::ObjCPropertyAttribute::kind_getter, clang::ObjCPropertyAttribute::kind_noattr, clang::ObjCPropertyAttribute::kind_nonatomic, clang::ObjCPropertyAttribute::kind_null_resettable, clang::ObjCPropertyAttribute::kind_nullability, clang::ObjCPropertyAttribute::kind_readonly, clang::ObjCPropertyAttribute::kind_readwrite, clang::ObjCPropertyAttribute::kind_retain, clang::ObjCPropertyAttribute::kind_setter, clang::ObjCPropertyAttribute::kind_strong, clang::ObjCPropertyAttribute::kind_unsafe_unretained, clang::ObjCPropertyAttribute::kind_weak, clang::Property, clang::AttributedType::stripOuterNullability(), clang::extractapi::DeclarationFragments::Text, and clang::Unspecified.
|
static |
Build DeclarationFragments for an Objective-C protocol declaration ObjCProtocolDecl.
Definition at line 1546 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSpace(), clang::index::generateUSRForDecl(), clang::extractapi::DeclarationFragments::Identifier, clang::extractapi::DeclarationFragments::Keyword, clang::extractapi::DeclarationFragments::Text, and clang::extractapi::DeclarationFragments::TypeIdentifier.
|
static |
Definition at line 938 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), clang::extractapi::DeclarationFragments::getExceptionSpecificationString(), clang::FunctionDecl::getExceptionSpecType(), clang::NamedDecl::getNameAsString(), clang::FunctionDecl::getNumParams(), clang::FunctionDecl::getParamDecl(), clang::FunctionDecl::getReturnType(), clang::extractapi::DeclarationFragments::Identifier, clang::CXXMethodDecl::isConst(), clang::extractapi::DeclarationFragments::Keyword, and clang::extractapi::DeclarationFragments::Text.
|
static |
Build DeclarationFragments for a struct/union record declaration RecordDecl.
Definition at line 800 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::extractapi::DeclarationFragments::Identifier, clang::extractapi::DeclarationFragments::Keyword, and clang::extractapi::DeclarationFragments::Text.
|
static |
Definition at line 1190 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSpace(), clang::TemplateParameterList::asArray(), clang::NamedDecl::getName(), clang::TemplateDecl::getTemplateParameters(), clang::extractapi::DeclarationFragments::Identifier, clang::extractapi::DeclarationFragments::Keyword, and clang::extractapi::DeclarationFragments::Text.
|
static |
Definition at line 837 of file DeclarationFragments.cpp.
|
static |
Definition at line 1069 of file DeclarationFragments.cpp.
|
static |
Definition at line 971 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Default, clang::extractapi::DeclarationFragments::GenericParameter, clang::extractapi::DeclarationFragments::Keyword, clang::TemplateParam, clang::extractapi::DeclarationFragments::Text, and clang::extractapi::DeclarationFragments::TypeIdentifier.
|
static |
Build DeclarationFragments for a typedef TypedefNameDecl
.
Definition at line 1576 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), clang::extractapi::DeclarationFragments::Identifier, and clang::extractapi::DeclarationFragments::Keyword.
|
static |
Build DeclarationFragments for a variable declaration VarDecl.
Definition at line 520 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), clang::NamedDecl::getName(), clang::VarDecl::getStorageClass(), clang::VarDecl::getStorageClassSpecifierString(), clang::ValueDecl::getType(), clang::TypeSourceInfo::getType(), clang::DeclaratorDecl::getTypeSourceInfo(), clang::ASTContext::getUnqualifiedObjCPointerType(), clang::extractapi::DeclarationFragments::Identifier, clang::VarDecl::isConstexpr(), clang::extractapi::DeclarationFragments::Keyword, clang::SC_None, and clang::T.
|
static |
Definition at line 562 of file DeclarationFragments.cpp.
References clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::extractapi::DeclarationFragments::begin(), clang::Decl::getASTContext(), clang::NamedDecl::getName(), clang::ValueDecl::getType(), clang::TypeSourceInfo::getType(), clang::DeclaratorDecl::getTypeSourceInfo(), clang::ASTContext::getUnqualifiedObjCPointerType(), clang::extractapi::DeclarationFragments::Identifier, clang::VarDecl::isConstexpr(), clang::VarDecl::isStaticDataMember(), clang::extractapi::DeclarationFragments::Keyword, and clang::T.
Referenced by getFragmentsForVarTemplatePartialSpecialization(), and getFragmentsForVarTemplateSpecialization().
|
static |
Definition at line 1276 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), getFragmentsForVarTemplate(), clang::extractapi::DeclarationFragments::Keyword, clang::extractapi::DeclarationFragments::pop_back(), and clang::extractapi::DeclarationFragments::Text.
|
static |
Definition at line 1256 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::appendSemicolon(), clang::extractapi::DeclarationFragments::appendSpace(), clang::Decl::getASTContext(), getFragmentsForVarTemplate(), clang::extractapi::DeclarationFragments::Keyword, clang::extractapi::DeclarationFragments::pop_back(), and clang::extractapi::DeclarationFragments::Text.
|
static |
Build FunctionSignature for a function-like declaration FunctionT
like FunctionDecl, ObjCMethodDecl, or CXXMethodDecl.
The logic and implementation of building a signature for a FunctionDecl, CXXMethodDecl, and ObjCMethodDecl are exactly the same, but they do not share a common base. This template helps reuse the code.
Definition at line 462 of file DeclarationFragments.h.
References clang::extractapi::FunctionSignature::addParameter(), clang::frontend::After, clang::extractapi::DeclarationFragments::append(), clang::extractapi::DeclarationFragments::begin(), clang::Function, and clang::extractapi::FunctionSignature::setReturnType().
|
static |
Build sub-heading fragments for a NamedDecl.
Definition at line 1600 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::getAsString(), clang::Decl::getDeclContext(), and clang::extractapi::DeclarationFragments::Identifier.
|
static |
Build sub-heading fragments for an Objective-C method.
Definition at line 1622 of file DeclarationFragments.cpp.
References clang::extractapi::DeclarationFragments::append(), clang::NamedDecl::getNameAsString(), clang::extractapi::DeclarationFragments::Identifier, clang::ObjCMethodDecl::isClassMethod(), clang::ObjCMethodDecl::isInstanceMethod(), and clang::extractapi::DeclarationFragments::Text.
|
static |
Build a sub-heading for macro Name
.
Definition at line 1635 of file DeclarationFragments.cpp.