/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
p6.cpp | 16 struct Literal { 17 constexpr Literal() {} 38 constexpr int e = ConstexprMember<NonLiteral>().F(); // expected-error {{constant expression}} expected-note {{non-literal type 'const NonLiteral' cannot be used in a constant expression}} 51 template<typename T> struct T1 : virtual Literal { // expected-note {{here}} 60 constexpr T2<Literal> g2() { return {}; } 62 template<typename T> class T3 : public T { // expected-note {{class with virtual base class is not a literal type}} 66 constexpr T3<Literal> g3() { return {}; } // ok 67 constexpr T3<VirtBase> g4() { return {}; } // expected-error {{not a literal type}}
|
p4.cpp | 16 struct Literal { 17 constexpr Literal() {} 18 explicit Literal(int); // expected-note 2 {{here}} 23 // shall be a literal type. 26 constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}} 27 constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}} 31 constexpr S(Literal) = delete; 194 Literal l; 195 Literal m; 196 Literal n[3] [all...] |
p3.cpp | 16 struct Literal { 17 constexpr Literal() {} 30 struct T : SS, NonLiteral { // expected-note {{base class 'NonLiteral' of non-literal type}} 32 constexpr int f() const; // expected-error {{non-literal type 'T' cannot have constexpr members}} 39 // - its return type shall be a literal type; 40 constexpr NonLiteral NonLiteralReturn() const { return {}; } // expected-error {{constexpr function's return type 'NonLiteral' is not a literal type}} 43 // expected-error@-2 {{constexpr function's return type 'void' is not a literal type}} 49 // - each of its parameter types shall be a literal type; 50 constexpr int NonLiteralParam(NonLiteral) const { return 0; } // expected-error {{constexpr function's 1st parameter type 'NonLiteral' is not a literal type}} 60 // don't have a literal return type. Defaulted assignment operators can't b [all...] |
/external/clang/lib/Sema/ |
SemaStmtAsm.cpp | 91 // The parser verifies that there is a string literal here. 97 StringLiteral *Literal = Constraints[i]; 98 if (!Literal->isAscii()) 99 return StmtError(Diag(Literal->getLocStart(),diag::err_asm_wide_character) 100 << Literal->getSourceRange()); 106 TargetInfo::ConstraintInfo Info(Literal->getString(), OutputName); 108 return StmtError(Diag(Literal->getLocStart(), 129 StringLiteral *Literal = Constraints[i]; 130 if (!Literal->isAscii()) 131 return StmtError(Diag(Literal->getLocStart(),diag::err_asm_wide_character [all...] |
SemaExpr.cpp | [all...] |
/external/chromium_org/third_party/sqlite/src/test/ |
fuzz_common.tcl | 24 # Literal 33 # Returns a string representing an SQL literal. 35 proc Literal {} { 71 set TemplateList [concat $c $c $c {[Literal]}] 94 {[Literal]} {[Literal]} {[Literal]} \ 95 {[Literal]} {[Literal]} {[Literal]} \ [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
wbnf.cpp | 411 } else { //if (isAlphabet(c) || isDigit(c) || TRUE){ // treat others as literal 425 char * operator()(const char * literal /*c-string*/){ 427 for(;*literal != 0; literal++){ 428 append(*literal); 506 class Literal : public Pick { 511 Literal(const char * s /*c-string*/){ 919 default: token.append(c); // unknown escaping, treat it as literal [all...] |
/external/clang/lib/Lex/ |
PPExpressions.cpp | 220 NumericLiteralParser Literal(Spelling, PeekTok.getLocation(), PP); 221 if (Literal.hadError) 224 if (Literal.isFloatingLiteral() || Literal.isImaginary) { 228 assert(Literal.isIntegerLiteral() && "Unknown ppnumber"); 231 if (Literal.hasUDSuffix()) 235 if (!PP.getLangOpts().C99 && Literal.isLongLong) { 244 // Parse the integer literal into Result. 245 if (Literal.GetIntegerValue(Result.Val)) { 246 // Overflow parsing integer literal [all...] |
Preprocessor.cpp | 435 // If this is a raw identifier or a literal token, set the pointer data. 738 // We need at least one string literal. 745 // Lex string literal tokens, optionally with macro expansion. 760 StringLiteralParser Literal(StrToks, *this); 761 assert(Literal.isAscii() && "Didn't allow wide strings in"); 763 if (Literal.hadError) 766 if (Literal.Pascal) { 772 String = Literal.GetString(); 783 NumericLiteralParser Literal(Spelling, Tok.getLocation(), *this); 784 if (Literal.hadError || !Literal.isIntegerLiteral() || Literal.hasUDSuffix() [all...] |
PPDirectives.cpp | [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/tools/trace/ |
parse.py | 259 return Literal(None) 265 return Literal(value) 271 return Literal(value) 277 return Literal(value) 283 return Literal(value) 295 return Literal(value) 301 return Literal(value)
|
/external/mesa3d/src/gallium/tools/trace/ |
parse.py | 259 return Literal(None) 265 return Literal(value) 271 return Literal(value) 277 return Literal(value) 283 return Literal(value) 295 return Literal(value) 301 return Literal(value)
|
/external/chromium_org/v8/src/ |
parser.h | 292 // Reports whether the pattern might be used as a literal search string. 396 typedef v8::internal::Literal* Literal; 460 // If we assign a function literal to a property we pretenure the 461 // literal so it can be added as a constant function property. 483 // not <literal> -> true / false 484 // + <numeric literal> -> <numeric literal> 485 // - <numeric literal> -> <numeric literal with value negated [all...] |
/external/clang/test/CXX/expr/expr.const/ |
p2-0x.cpp | 21 // literal class or a constexpr function [ Note: Overload resolution (13.3) 287 // with a constant expression [Note: a string literal (2.14.5 [lex.string]) 296 // - a non-volatile glvalue of literal type that refers to a non-volatile 301 volatile int v; // expected-note {{not literal because}} 303 constexpr V v; // expected-error {{non-literal type}} 320 // - a non-volatile glvalue of literal type that refers to a non-volatile 543 struct Literal { 544 constexpr Literal(const char *name) : name(name) {} 548 constexpr Expr(Literal l) : IsLiteral(true), l(l) {} 551 Literal l [all...] |
/bootable/recovery/edify/ |
expr.h | 80 // Glue to make an Expr out of a literal. 81 Value* Literal(const char* name, State* state, int argc, Expr* argv[]);
|
parser.y | 74 $$->fn = Literal;
|
/external/chromium_org/tools/gn/ |
parser.h | 52 scoped_ptr<ParseNode> Literal(Token token);
|
parser.cc | 48 {&Parser::Literal, NULL, -1}, // INTEGER 49 {&Parser::Literal, NULL, -1}, // STRING 50 {&Parser::Literal, NULL, -1}, // TRUE_TOKEN 51 {&Parser::Literal, NULL, -1}, // FALSE_TOKEN 209 scoped_ptr<ParseNode> Parser::Literal(Token token) {
|
/external/chromium_org/third_party/re2/re2/ |
prefilter.cc | 215 static Info* Literal(Rune r); 397 // Constructs Info for literal rune. 398 Prefilter::Info* Prefilter::Info::Literal(Rune r) { 405 // Constructs Info for literal rune for Latin1 encoded string. 554 info = Literal(re->rune()); 569 info = Literal(re->runes()[0]); 571 info = Concat(info, Literal(re->runes()[i]));
|
/external/regex-re2/re2/ |
prefilter.cc | 215 static Info* Literal(Rune r); 405 // Constructs Info for literal rune. 406 Prefilter::Info* Prefilter::Info::Literal(Rune r) { 413 // Constructs Info for literal rune for Latin1 encoded string. 562 info = Literal(re->rune()); 577 info = Literal(re->runes()[0]); 579 info = Concat(info, Literal(re->runes()[i]));
|
/external/chromium_org/third_party/re2/re2/testing/ |
parse_test.cc | 257 // Test that parsing with Literal works. 258 TEST(TestParse, Literal) { 259 TestParse(literal_tests, arraysize(literal_tests), Regexp::Literal, "literal"); 397 // ToString produces "\\{" for a literal brace,
|
/external/regex-re2/re2/testing/ |
parse_test.cc | 257 // Test that parsing with Literal works. 258 TEST(TestParse, Literal) { 259 TestParse(literal_tests, arraysize(literal_tests), Regexp::Literal, "literal"); 397 // ToString produces "\\{" for a literal brace,
|
/external/chromium_org/third_party/jinja2/ |
nodes.py | 425 class Literal(Expr): 430 class Const(Literal): 453 class TemplateData(Literal): 466 class Tuple(Literal): 484 class List(Literal): 485 """Any list literal such as ``[1, 2, 3]``""" 493 class Dict(Literal): 494 """Any dict literal such as ``{1: 2, 3: 4}``. The items must be a list of
|
/external/chromium_org/third_party/lzma_sdk/ |
LzmaDec.c | 105 #define Literal (RepLenCoder + kNumLenProbs) 112 #if Literal != LZMA_BASE_SIZE 165 prob = probs + Literal; 509 prob = probs + Literal; 709 UInt32 numProbs = Literal + ((UInt32)LZMA_LIT_SIZE << (p->prop.lc + p->prop.lp));
|
/external/chromium_org/third_party/ots/third_party/lzma_sdk/ |
LzmaDec.c | 106 #define Literal (RepLenCoder + kNumLenProbs) 113 #if Literal != LZMA_BASE_SIZE 166 prob = probs + Literal; 510 prob = probs + Literal; 710 UInt32 numProbs = Literal + ((UInt32)LZMA_LIT_SIZE << (p->prop.lc + p->prop.lp));
|