Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
clang 20.0.0git
clang::extractapi::DeclarationFragmentsBuilder Class Reference

A factory class to build DeclarationFragments for different kinds of Decl. More...

#include "clang/ExtractAPI/DeclarationFragments.h"

Static Public Member Functions

template<typename FunctionT >
static FunctionSignature getFunctionSignature (const FunctionT *Function)
 Build FunctionSignature for a function-like declaration FunctionT like FunctionDecl, ObjCMethodDecl, or CXXMethodDecl.
 
static AccessControl getAccessControl (const Decl *Decl)
 
static DeclarationFragments getFragmentsForNamespace (const NamespaceDecl *Decl)
 
static DeclarationFragments getFragmentsForVar (const VarDecl *)
 Build DeclarationFragments for a variable declaration VarDecl.
 
static DeclarationFragments getFragmentsForVarTemplate (const VarDecl *)
 
static DeclarationFragments getFragmentsForFunction (const FunctionDecl *)
 Build DeclarationFragments for a function declaration FunctionDecl.
 
static DeclarationFragments getFragmentsForEnumConstant (const EnumConstantDecl *)
 Build DeclarationFragments for an enum constant declaration EnumConstantDecl.
 
static DeclarationFragments getFragmentsForEnum (const EnumDecl *)
 Build DeclarationFragments for an enum declaration EnumDecl.
 
static DeclarationFragments getFragmentsForField (const FieldDecl *)
 Build DeclarationFragments for a field declaration FieldDecl.
 
static DeclarationFragments getFragmentsForRecordDecl (const RecordDecl *)
 Build DeclarationFragments for a struct/union record declaration RecordDecl.
 
static DeclarationFragments getFragmentsForCXXClass (const CXXRecordDecl *)
 
static DeclarationFragments getFragmentsForSpecialCXXMethod (const CXXMethodDecl *)
 
static DeclarationFragments getFragmentsForCXXMethod (const CXXMethodDecl *)
 
static DeclarationFragments getFragmentsForConversionFunction (const CXXConversionDecl *)
 
static DeclarationFragments getFragmentsForOverloadedOperator (const CXXMethodDecl *)
 
static DeclarationFragments getFragmentsForTemplateParameters (ArrayRef< NamedDecl * >)
 
static DeclarationFragments getFragmentsForTemplateArguments (const ArrayRef< TemplateArgument >, ASTContext &, const std::optional< ArrayRef< TemplateArgumentLoc > >)
 
static DeclarationFragments getFragmentsForConcept (const ConceptDecl *)
 
static DeclarationFragments getFragmentsForRedeclarableTemplate (const RedeclarableTemplateDecl *)
 
static DeclarationFragments getFragmentsForClassTemplateSpecialization (const ClassTemplateSpecializationDecl *)
 
static DeclarationFragments getFragmentsForClassTemplatePartialSpecialization (const ClassTemplatePartialSpecializationDecl *)
 
static DeclarationFragments getFragmentsForVarTemplateSpecialization (const VarTemplateSpecializationDecl *)
 
static DeclarationFragments getFragmentsForVarTemplatePartialSpecialization (const VarTemplatePartialSpecializationDecl *)
 
static DeclarationFragments getFragmentsForFunctionTemplate (const FunctionTemplateDecl *Decl)
 
static DeclarationFragments getFragmentsForFunctionTemplateSpecialization (const FunctionDecl *Decl)
 
static DeclarationFragments getFragmentsForObjCCategory (const ObjCCategoryDecl *)
 Build DeclarationFragments for an Objective-C category declaration ObjCCategoryDecl.
 
static DeclarationFragments getFragmentsForObjCInterface (const ObjCInterfaceDecl *)
 Build DeclarationFragments for an Objective-C interface declaration ObjCInterfaceDecl.
 
static DeclarationFragments getFragmentsForObjCMethod (const ObjCMethodDecl *)
 Build DeclarationFragments for an Objective-C method declaration ObjCMethodDecl.
 
static DeclarationFragments getFragmentsForObjCProperty (const ObjCPropertyDecl *)
 Build DeclarationFragments for an Objective-C property declaration ObjCPropertyDecl.
 
static DeclarationFragments getFragmentsForObjCProtocol (const ObjCProtocolDecl *)
 Build DeclarationFragments for an Objective-C protocol declaration ObjCProtocolDecl.
 
static DeclarationFragments getFragmentsForMacro (StringRef Name, const MacroInfo *MI)
 Build DeclarationFragments for a macro.
 
static DeclarationFragments getFragmentsForTypedef (const TypedefNameDecl *Decl)
 Build DeclarationFragments for a typedef TypedefNameDecl.
 
static DeclarationFragments getSubHeading (const NamedDecl *)
 Build sub-heading fragments for a NamedDecl.
 
static DeclarationFragments getSubHeading (const ObjCMethodDecl *)
 Build sub-heading fragments for an Objective-C method.
 
static DeclarationFragments getSubHeadingForMacro (StringRef Name)
 Build a sub-heading for macro Name.
 

Detailed Description

A factory class to build DeclarationFragments for different kinds of Decl.

Definition at line 294 of file DeclarationFragments.h.

Member Function Documentation

◆ getAccessControl()

◆ getFragmentsForClassTemplatePartialSpecialization()

◆ getFragmentsForClassTemplateSpecialization()

◆ getFragmentsForConcept()

◆ getFragmentsForConversionFunction()

◆ getFragmentsForCXXClass()

◆ getFragmentsForCXXMethod()

◆ getFragmentsForEnum()

◆ getFragmentsForEnumConstant()

◆ getFragmentsForField()

◆ getFragmentsForFunction()

◆ getFragmentsForFunctionTemplate()

◆ getFragmentsForFunctionTemplateSpecialization()

◆ getFragmentsForMacro()

◆ getFragmentsForNamespace()

◆ getFragmentsForObjCCategory()

◆ getFragmentsForObjCInterface()

◆ getFragmentsForObjCMethod()

◆ getFragmentsForObjCProperty()

DeclarationFragments DeclarationFragmentsBuilder::getFragmentsForObjCProperty ( const ObjCPropertyDecl Property)
static

◆ getFragmentsForObjCProtocol()

◆ getFragmentsForOverloadedOperator()

◆ getFragmentsForRecordDecl()

◆ getFragmentsForRedeclarableTemplate()

◆ getFragmentsForSpecialCXXMethod()

◆ getFragmentsForTemplateArguments()

◆ getFragmentsForTemplateParameters()

◆ getFragmentsForTypedef()

◆ getFragmentsForVar()

◆ getFragmentsForVarTemplate()

◆ getFragmentsForVarTemplatePartialSpecialization()

◆ getFragmentsForVarTemplateSpecialization()

◆ getFunctionSignature()

◆ getSubHeading() [1/2]

DeclarationFragments DeclarationFragmentsBuilder::getSubHeading ( const NamedDecl Decl)
static

Build sub-heading fragments for a NamedDecl.

Definition at line 1611 of file DeclarationFragments.cpp.

References clang::extractapi::DeclarationFragments::append(), clang::getAsString(), clang::Decl::getDeclContext(), getSubHeading(), and clang::extractapi::DeclarationFragments::Identifier.

Referenced by getSubHeading(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordEnumConstants(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCInstanceVariables(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCMethods(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCProperties(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplatePartialSpecializationDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplateSpecializationDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitConceptDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXConstructorDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXConversionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXDestructorDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXMethodDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitEnumDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFieldDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFunctionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFunctionTemplateDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitNamespaceDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCCategoryDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCInterfaceDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCProtocolDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitTypedefNameDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplateDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplatePartialSpecializationDecl(), and clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplateSpecializationDecl().

◆ getSubHeading() [2/2]

◆ getSubHeadingForMacro()

DeclarationFragments DeclarationFragmentsBuilder::getSubHeadingForMacro ( StringRef  Name)
static

Build a sub-heading for macro Name.

Definition at line 1652 of file DeclarationFragments.cpp.

References clang::extractapi::DeclarationFragments::append(), and clang::extractapi::DeclarationFragments::Identifier.


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