Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/AST/ASTContext.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
BuiltinTemplateDecl * | BuiltinTemplateDecl * | ||||
ASTContext::getTypePackElementDecl() const { | ASTContext::getTypePackElementDecl() const { | ||||
if (!TypePackElementDecl) | if (!TypePackElementDecl) | ||||
TypePackElementDecl = buildBuiltinTemplateDecl(BTK__type_pack_element, | TypePackElementDecl = buildBuiltinTemplateDecl(BTK__type_pack_element, | ||||
getTypePackElementName()); | getTypePackElementName()); | ||||
return TypePackElementDecl; | return TypePackElementDecl; | ||||
} | } | ||||
BuiltinTemplateDecl *ASTContext::getDecayDecl() const { | |||||
if (!DecayDecl) | |||||
DecayDecl = buildBuiltinTemplateDecl(BTK__decay, getDecayName()); | |||||
return DecayDecl; | |||||
} | |||||
RecordDecl *ASTContext::buildImplicitRecord(StringRef Name, | RecordDecl *ASTContext::buildImplicitRecord(StringRef Name, | ||||
RecordDecl::TagKind TK) const { | RecordDecl::TagKind TK) const { | ||||
SourceLocation Loc; | SourceLocation Loc; | ||||
RecordDecl *NewDecl; | RecordDecl *NewDecl; | ||||
if (getLangOpts().CPlusPlus) | if (getLangOpts().CPlusPlus) | ||||
NewDecl = CXXRecordDecl::Create(*this, TK, getTranslationUnitDecl(), Loc, | NewDecl = CXXRecordDecl::Create(*this, TK, getTranslationUnitDecl(), Loc, | ||||
Loc, &Idents.get(Name)); | Loc, &Idents.get(Name)); | ||||
else | else | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |