Lines Matching refs:StringLiteral
450 StringLiteral *SL)
457 StringLiteral *PredefinedExpr::getFunctionName() {
458 return cast_or_null<StringLiteral>(FnName);
813 int StringLiteral::mapCharByteWidth(TargetInfo const &target,StringKind k) {
837 StringLiteral *StringLiteral::Create(const ASTContext &C, StringRef Str,
842 "StringLiteral must be of constant array type!");
844 // Allocate enough space for the StringLiteral plus an array of locations for
846 void *Mem = C.Allocate(sizeof(StringLiteral)+
848 llvm::alignOf<StringLiteral>());
849 StringLiteral *SL = new (Mem) StringLiteral(Ty);
851 // OPTIMIZE: could allocate this appended to the StringLiteral.
862 StringLiteral *StringLiteral::CreateEmpty(const ASTContext &C,
864 void *Mem = C.Allocate(sizeof(StringLiteral)+
866 llvm::alignOf<StringLiteral>());
867 StringLiteral *SL = new (Mem) StringLiteral(QualType());
874 void StringLiteral::outputString(raw_ostream &OS) const {
967 void StringLiteral::setString(const ASTContext &C, StringRef Str,
1020 StringLiteral::getLocationOfByte(unsigned ByteNo, const SourceManager &SM,
1024 assert((Kind == StringLiteral::Ascii || Kind == StringLiteral::UTF8) &&
1983 return isa<StringLiteral>(Init) || isa<ObjCEncodeExpr>(Init);