clang 20.0.0git
|
#include "clang/Sema/HLSLExternalSemaSource.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Attr.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/Expr.h"
#include "clang/AST/Type.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Sema/Lookup.h"
#include "clang/Sema/Sema.h"
#include "clang/Sema/SemaHLSL.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Frontend/HLSL/HLSLResource.h"
#include "llvm/Support/ErrorHandling.h"
#include <functional>
Go to the source code of this file.
Functions | |
static FunctionDecl * | lookupBuiltinFunction (Sema &S, StringRef Name) |
static BuiltinTypeDeclBuilder | setupBufferType (CXXRecordDecl *Decl, Sema &S, ResourceClass RC, ResourceKind RK, bool IsROV, bool RawBuffer) |
Set up common members and attributes for buffer types. | |
static Expr * | constructTypedBufferConstraintExpr (Sema &S, SourceLocation NameLoc, TemplateTypeParmDecl *T) |
static Expr * | constructStructuredBufferConstraintExpr (Sema &S, SourceLocation NameLoc, TemplateTypeParmDecl *T) |
static ConceptDecl * | constructBufferConceptDecl (Sema &S, NamespaceDecl *NSD, bool isTypedBuffer) |
|
static |
Definition at line 942 of file HLSLExternalSemaSource.cpp.
References clang::DeclContext::addDecl(), constructStructuredBufferConstraintExpr(), constructTypedBufferConstraintExpr(), clang::ConceptDecl::Create(), clang::TemplateTypeParmDecl::Create(), clang::TemplateParameterList::Create(), clang::IdentifierTable::get(), clang::Sema::getASTContext(), clang::Decl::getDeclContext(), clang::ASTContext::Idents, clang::TemplateDecl::setTemplateParameters(), and clang::T.
|
static |
Definition at line 896 of file HLSLExternalSemaSource.cpp.
References clang::ASTContext::BoolTy, clang::IntegerLiteral::Create(), clang::UnaryOperator::Create(), clang::BinaryOperator::Create(), clang::TypeTraitExpr::Create(), clang::Sema::getASTContext(), clang::ASTContext::getSizeType(), clang::ASTContext::getTrivialTypeSourceInfo(), clang::ASTContext::getTypeDeclType(), clang::ASTContext::getTypeSize(), clang::OK_Ordinary, clang::T, and clang::VK_LValue.
Referenced by constructBufferConceptDecl().
|
static |
Definition at line 871 of file HLSLExternalSemaSource.cpp.
References clang::ASTContext::BoolTy, clang::TypeTraitExpr::Create(), clang::Sema::getASTContext(), clang::ASTContext::getTrivialTypeSourceInfo(), clang::ASTContext::getTypeDeclType(), and clang::T.
Referenced by constructBufferConceptDecl().
|
static |
Definition at line 1129 of file HLSLExternalSemaSource.cpp.
References clang::IdentifierTable::get(), clang::Sema::getASTContext(), clang::Sema::getCurScope(), clang::LookupResult::getFoundDecl(), clang::ASTContext::Idents, clang::LookupResult::isSingleResult(), clang::Sema::LookupName(), and clang::Sema::LookupOrdinaryName.
|
static |
Set up common members and attributes for buffer types.
Definition at line 859 of file HLSLExternalSemaSource.cpp.