Home | History | Annotate | Download | only in AST

Lines Matching refs:StringLiteral

735 int StringLiteral::mapCharByteWidth(TargetInfo const &target,StringKind k) {
759 StringLiteral *StringLiteral::Create(ASTContext &C, StringRef Str,
763 // Allocate enough space for the StringLiteral plus an array of locations for
765 void *Mem = C.Allocate(sizeof(StringLiteral)+
767 llvm::alignOf<StringLiteral>());
768 StringLiteral *SL = new (Mem) StringLiteral(Ty);
770 // OPTIMIZE: could allocate this appended to the StringLiteral.
781 StringLiteral *StringLiteral::CreateEmpty(ASTContext &C, unsigned NumStrs) {
782 void *Mem = C.Allocate(sizeof(StringLiteral)+
784 llvm::alignOf<StringLiteral>());
785 StringLiteral *SL = new (Mem) StringLiteral(QualType());
792 void StringLiteral::outputString(raw_ostream &OS) const {
885 void StringLiteral::setString(ASTContext &C, StringRef Str,
928 SourceLocation StringLiteral::
931 assert((Kind == StringLiteral::Ascii || Kind == StringLiteral::UTF8) &&
1844 return isa<StringLiteral>(Init) || isa<ObjCEncodeExpr>(Init);