Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/AST/ASTContext.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
IdentifierInfo *NSCopyingName = nullptr; | IdentifierInfo *NSCopyingName = nullptr; | ||||
/// The identifier '__make_integer_seq'. | /// The identifier '__make_integer_seq'. | ||||
mutable IdentifierInfo *MakeIntegerSeqName = nullptr; | mutable IdentifierInfo *MakeIntegerSeqName = nullptr; | ||||
/// The identifier '__type_pack_element'. | /// The identifier '__type_pack_element'. | ||||
mutable IdentifierInfo *TypePackElementName = nullptr; | mutable IdentifierInfo *TypePackElementName = nullptr; | ||||
/// The identifier '__decay' | |||||
mutable IdentifierInfo *DecayName = nullptr; | |||||
QualType ObjCConstantStringType; | QualType ObjCConstantStringType; | ||||
mutable RecordDecl *CFConstantStringTagDecl = nullptr; | mutable RecordDecl *CFConstantStringTagDecl = nullptr; | ||||
mutable TypedefDecl *CFConstantStringTypeDecl = nullptr; | mutable TypedefDecl *CFConstantStringTypeDecl = nullptr; | ||||
mutable QualType ObjCSuperType; | mutable QualType ObjCSuperType; | ||||
QualType ObjCNSStringType; | QualType ObjCNSStringType; | ||||
▲ Show 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | |||||
ImportDecl *FirstLocalImport = nullptr; | ImportDecl *FirstLocalImport = nullptr; | ||||
ImportDecl *LastLocalImport = nullptr; | ImportDecl *LastLocalImport = nullptr; | ||||
TranslationUnitDecl *TUDecl = nullptr; | TranslationUnitDecl *TUDecl = nullptr; | ||||
mutable ExternCContextDecl *ExternCContext = nullptr; | mutable ExternCContextDecl *ExternCContext = nullptr; | ||||
mutable BuiltinTemplateDecl *MakeIntegerSeqDecl = nullptr; | mutable BuiltinTemplateDecl *MakeIntegerSeqDecl = nullptr; | ||||
mutable BuiltinTemplateDecl *TypePackElementDecl = nullptr; | mutable BuiltinTemplateDecl *TypePackElementDecl = nullptr; | ||||
mutable BuiltinTemplateDecl *DecayDecl = nullptr; | |||||
/// The associated SourceManager object. | /// The associated SourceManager object. | ||||
SourceManager &SourceMgr; | SourceManager &SourceMgr; | ||||
/// The language options used to create the AST associated with | /// The language options used to create the AST associated with | ||||
/// this ASTContext object. | /// this ASTContext object. | ||||
LangOptions &LangOpts; | LangOptions &LangOpts; | ||||
▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
if (TUDecl) | if (TUDecl) | ||||
NewTUDecl->setPreviousDecl(TUDecl); | NewTUDecl->setPreviousDecl(TUDecl); | ||||
TUDecl = NewTUDecl; | TUDecl = NewTUDecl; | ||||
} | } | ||||
ExternCContextDecl *getExternCContextDecl() const; | ExternCContextDecl *getExternCContextDecl() const; | ||||
BuiltinTemplateDecl *getMakeIntegerSeqDecl() const; | BuiltinTemplateDecl *getMakeIntegerSeqDecl() const; | ||||
BuiltinTemplateDecl *getTypePackElementDecl() const; | BuiltinTemplateDecl *getTypePackElementDecl() const; | ||||
BuiltinTemplateDecl *getDecayDecl() const; | |||||
// Builtin Types. | // Builtin Types. | ||||
CanQualType VoidTy; | CanQualType VoidTy; | ||||
CanQualType BoolTy; | CanQualType BoolTy; | ||||
CanQualType CharTy; | CanQualType CharTy; | ||||
CanQualType WCharTy; // [C++ 3.9.1p5]. | CanQualType WCharTy; // [C++ 3.9.1p5]. | ||||
CanQualType WideCharTy; // Same as WCharTy in C++, integer type in C99. | CanQualType WideCharTy; // Same as WCharTy in C++, integer type in C99. | ||||
CanQualType WIntTy; // [C99 7.24.1], integer type unchanged by default promotions. | CanQualType WIntTy; // [C99 7.24.1], integer type unchanged by default promotions. | ||||
▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
IdentifierInfo *getTypePackElementName() const { | IdentifierInfo *getTypePackElementName() const { | ||||
if (!TypePackElementName) | if (!TypePackElementName) | ||||
TypePackElementName = &Idents.get("__type_pack_element"); | TypePackElementName = &Idents.get("__type_pack_element"); | ||||
return TypePackElementName; | return TypePackElementName; | ||||
} | } | ||||
IdentifierInfo *getDecayName() const { | |||||
if (!DecayName) | |||||
DecayName = &Idents.get("__decay"); | |||||
return DecayName; | |||||
} | |||||
/// Retrieve the Objective-C "instancetype" type, if already known; | /// Retrieve the Objective-C "instancetype" type, if already known; | ||||
/// otherwise, returns a NULL type; | /// otherwise, returns a NULL type; | ||||
QualType getObjCInstanceType() { | QualType getObjCInstanceType() { | ||||
return getTypeDeclType(getObjCInstanceTypeDecl()); | return getTypeDeclType(getObjCInstanceTypeDecl()); | ||||
} | } | ||||
/// Retrieve the typedef declaration corresponding to the Objective-C | /// Retrieve the typedef declaration corresponding to the Objective-C | ||||
/// "instancetype" type. | /// "instancetype" type. | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |