#include "clang/AST/Attr.h"
#include "clang/Basic/AttributeCommonInfo.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
#include "clang/Parse/RAIIObjectsForParser.h"
#include "clang/Sema/SemaHLSL.h"
usingnamespaceclang;
static bool validateDeclsInsideHLSLBuffer(Parser::DeclGroupPtrTy DG,
SourceLocation BufferLoc,
bool IsCBuffer, Parser &P) { … }
Decl *Parser::ParseHLSLBuffer(SourceLocation &DeclEnd) { … }
static void fixSeparateAttrArgAndNumber(StringRef ArgStr, SourceLocation ArgLoc,
Token Tok, ArgsVector &ArgExprs,
Parser &P, ASTContext &Ctx,
Preprocessor &PP) { … }
void Parser::ParseHLSLAnnotations(ParsedAttributes &Attrs,
SourceLocation *EndLoc,
bool CouldBeBitField) { … }