Lines Matching refs:Literal
1139 StringLiteralParser Literal(StringToks, NumStringToks, PP);
1140 if (Literal.hadError)
1148 if (Literal.isWide())
1150 else if (Literal.isUTF16())
1152 else if (Literal.isUTF32())
1154 else if (Literal.Pascal)
1158 if (Literal.isWide())
1160 else if (Literal.isUTF8())
1162 else if (Literal.isUTF16())
1164 else if (Literal.isUTF32())
1167 // A C++ string literal has a const-qualified element type (C++ 2.13.4p1).
1175 llvm::APInt(32, Literal.GetNumStringChars()+1),
1179 return Owned(StringLiteral::Create(Context, Literal.GetString(),
1180 Kind, Literal.Pascal, StrTy,
2540 CharLiteralParser Literal(ThisTok.begin(), ThisTok.end(), Tok.getLocation(),
2542 if (Literal.hadError())
2548 else if (Literal.isWide())
2550 else if (Literal.isUTF16())
2552 else if (Literal.isUTF32())
2554 else if (Literal.isMultiChar())
2560 if (Literal.isWide())
2562 else if (Literal.isUTF16())
2564 else if (Literal.isUTF32())
2567 return Owned(new (Context) CharacterLiteral(Literal.getValue(), Kind, Ty,
2592 NumericLiteralParser Literal(ThisTokBegin, ThisTokBegin+ActualLength,
2594 if (Literal.hadError)
2599 if (Literal.isFloatingLiteral()) {
2601 if (Literal.isFloat)
2603 else if (!Literal.isLong)
2613 APFloat::opStatus result = Literal.GetFloatValue(Val);
2645 } else if (!Literal.isIntegerLiteral()) {
2651 if (!getLangOptions().C99 && Literal.isLongLong)
2659 if (Literal.GetIntegerValue(ResultVal)) {
2671 bool AllowUnsigned = Literal.isUnsigned || Literal.getRadix() != 10;
2675 if (!Literal.isLong && !Literal.isLongLong) {
2682 if (!Literal.isUnsigned && ResultVal[IntSize-1] == 0)
2691 if (Ty.isNull() && !Literal.isLongLong) {
2697 if (!Literal.isUnsigned && ResultVal[LongSize-1] == 0)
2714 if (!Literal.isUnsigned && (ResultVal[LongLongSize-1] == 0 ||
2715 (getLangOptions().MicrosoftExt && Literal.isLongLong)))
2737 // If this is an imaginary literal, create the ImaginaryLiteral wrapper.
2738 if (Literal.isImaginary)
4259 // Check for an altivec or OpenCL literal,
4330 ExprResult Literal = Owned(exprs[0]);
4331 Literal = ImpCastExprToType(Literal.take(), ElemTy,
4332 PrepareScalarCast(Literal, ElemTy));
4333 return BuildCStyleCastExpr(LParenLoc, TInfo, RParenLoc, Literal.take());
4351 ExprResult Literal = Owned(exprs[0]);
4352 Literal = ImpCastExprToType(Literal.take(), ElemTy,
4353 PrepareScalarCast(Literal, ElemTy));
4354 return BuildCStyleCastExpr(LParenLoc, TInfo, RParenLoc, Literal.take());
5561 // Build a compound literal constructing a value of the transparent
6237 Result.toString(HexResult, 16, /*Signed =*/false, /*Literal =*/true);
8636 /// ActOnBlockStart - This callback is invoked when a block literal is started.
8656 // literal signature. Furthermore, it is always a FunctionProtoType
8778 /// literal was successfully completed. ^(int x){...}
9059 // (deprecated) C++ conversion from a string literal to a char*