clang 20.0.0git
Namespaces | Functions
Attr.h File Reference
#include "clang/AST/Attr.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/Type.h"
#include "clang/Basic/AttributeCommonInfo.h"
#include "clang/Basic/DiagnosticSema.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Sema/ParsedAttr.h"
#include "clang/Sema/SemaBase.h"
#include "llvm/Support/Casting.h"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 

Functions

bool clang::isFuncOrMethodForAttrSubject (const Decl *D)
 isFuncOrMethodForAttrSubject - Return true if the given decl has function type (function or function-typed variable) or an Objective-C method.
 
bool clang::isFunctionOrMethodOrBlockForAttrSubject (const Decl *D)
 Return true if the given decl has function type (function or function-typed variable) or an Objective-C method or a block.
 
bool clang::hasDeclarator (const Decl *D)
 Return true if the given decl has a declarator that should have been processed by Sema::GetTypeForDeclarator.
 
bool clang::hasFunctionProto (const Decl *D)
 hasFunctionProto - Return true if the given decl has a argument information.
 
unsigned clang::getFunctionOrMethodNumParams (const Decl *D)
 getFunctionOrMethodNumParams - Return number of function or method parameters.
 
const ParmVarDecl * clang::getFunctionOrMethodParam (const Decl *D, unsigned Idx)
 
QualType clang::getFunctionOrMethodParamType (const Decl *D, unsigned Idx)
 
SourceRange clang::getFunctionOrMethodParamRange (const Decl *D, unsigned Idx)
 
QualType clang::getFunctionOrMethodResultType (const Decl *D)
 
SourceRange clang::getFunctionOrMethodResultSourceRange (const Decl *D)
 
bool clang::isFunctionOrMethodVariadic (const Decl *D)
 
bool clang::isInstanceMethod (const Decl *D)
 
template<typename AttrTy >
bool clang::checkAttrMutualExclusion (SemaBase &S, Decl *D, const ParsedAttr &AL)
 Diagnose mutually exclusive attributes when present on a given declaration.
 
template<typename AttrTy >
bool clang::checkAttrMutualExclusion (SemaBase &S, Decl *D, const Attr &AL)
 
template<typename... DiagnosticArgs>
const SemaBase::SemaDiagnosticBuilder & clang::appendDiagnostics (const SemaBase::SemaDiagnosticBuilder &Bldr)
 
template<typename T , typename... DiagnosticArgs>
const SemaBase::SemaDiagnosticBuilder & clang::appendDiagnostics (const SemaBase::SemaDiagnosticBuilder &Bldr, T &&ExtraArg, DiagnosticArgs &&...ExtraArgs)
 
template<typename AttrType >
void clang::handleSimpleAttribute (SemaBase &S, Decl *D, const AttributeCommonInfo &CI)
 Applies the given attribute to the Decl without performing any additional semantic checking.
 
template<typename AttrType , typename... DiagnosticArgs>
void clang::handleSimpleAttributeOrDiagnose (SemaBase &S, Decl *D, const AttributeCommonInfo &CI, bool PassesCheck, unsigned DiagID, DiagnosticArgs &&...ExtraArgs)
 Add an attribute AttrType to declaration D, provided that PassesCheck is true.