HomeSort by relevance Sort by last modified time
    Searched refs:Literal (Results 1 - 25 of 33) sorted by null

1 2

  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p6.cpp 16 struct Literal {
17 constexpr Literal() {}
46 constexpr ConstexprCtor(P...); // expected-note {{constructor template instantiation is not constexpr because 1st parameter type 'NonLiteral' is not a literal type}} \
47 expected-note {{constructor template instantiation is not constexpr because 2nd parameter type 'NonLiteral' is not a literal type}}
51 constexpr ConstexprCtor<NonLiteral> f3(); // expected-error {{not a literal type}}
52 constexpr ConstexprCtor<int, NonLiteral> f4(); // expected-error {{not a literal type}}
57 template<typename T> struct T1 : virtual Literal { // expected-note {{here}}
61 template<typename T> struct T2 : virtual T { // expected-note {{struct with virtual base class is not a literal type}} expected-note {{here}}
66 constexpr T2<Literal> g2(); // expected-error {{not a literal type}
    [all...]
p4.cpp 15 struct Literal {
16 constexpr Literal() {}
25 // shall be a literal type.
28 constexpr S(int, NonLiteral, N::C); // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
29 constexpr S(int, NonLiteral = 42); // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
33 constexpr S(Literal) = delete;
165 Literal l;
166 Literal m;
167 Literal n[3];
177 Literal l
    [all...]
p3.cpp 15 struct Literal {
16 constexpr Literal() {}
33 struct T : SS { // expected-note {{base class 'SS' of non-literal type}}
34 constexpr T(); // expected-error {{non-literal type 'T' cannot have constexpr members}}
41 // - its return type shall be a literal type;
42 constexpr NonLiteral NonLiteralReturn(); // expected-error {{constexpr function's return type 'NonLiteral' is not a literal type}}
45 constexpr F NonLiteralReturn2; // expected-error {{constexpr function's return type 'NonLiteral' is not a literal type}}
47 // - each of its parameter types shall be a literal type;
48 constexpr int NonLiteralParam(NonLiteral); // expected-error {{constexpr function's 1st parameter type 'NonLiteral' is not a literal type}}
50 constexpr G NonLiteralParam2; // expected-error {{constexpr function's 1st parameter type 'NonLiteral' is not a literal type}
    [all...]
  /external/icu4c/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 207 NumericLiteralParser Literal(Spelling.begin(), Spelling.end(),
209 if (Literal.hadError)
212 if (Literal.isFloatingLiteral() || Literal.isImaginary) {
216 assert(Literal.isIntegerLiteral() && "Unknown ppnumber");
219 if (!PP.getLangOptions().C99 && Literal.isLongLong)
223 // Parse the integer literal into Result.
224 if (Literal.GetIntegerValue(Result.Val)) {
225 // Overflow parsing integer literal.
231 Result.Val.setIsUnsigned(Literal.isUnsigned)
    [all...]
Pragma.cpp 152 // "The string literal is destringized by deleting the L prefix, if present,
200 /// is not enclosed within a string literal.
448 StringLiteralParser Literal(&StrToks[0], StrToks.size(), *this);
449 assert(Literal.isAscii() && "Didn't allow wide strings in");
450 if (Literal.hadError)
452 if (Literal.Pascal) {
457 ArgumentString = Literal.GetString();
524 StringLiteralParser Literal(&StrToks[0], StrToks.size(), *this);
525 assert(Literal.isAscii() && "Didn't allow wide strings in");
526 if (Literal.hadError
    [all...]
PPDirectives.cpp 799 StringLiteralParser Literal(&StrTok, 1, *this);
800 assert(Literal.isAscii() && "Didn't allow wide strings in");
801 if (Literal.hadError)
803 if (Literal.Pascal) {
807 FilenameID = SourceMgr.getLineTableFilenameID(Literal.GetString());
    [all...]
PPMacroExpansion.cpp     [all...]
  /bootable/recovery/edify/
expr.h 76 // Glue to make an Expr out of a literal.
77 Value* Literal(const char* name, State* state, int argc, Expr* argv[]);
parser.y 70 $$->fn = Literal;
expr.c 323 Value* Literal(const char* name, State* state, int argc, Expr* argv[]) {
  /external/clang/lib/Sema/
SemaStmt.cpp     [all...]
SemaExpr.cpp     [all...]
SemaChecking.cpp 93 /// annotation is a non wide string literal.
96 StringLiteral *Literal = dyn_cast<StringLiteral>(Arg);
97 if (!Literal || !Literal->isAscii()) {
864 StringLiteral *Literal = dyn_cast<StringLiteral>(Arg);
866 if (!Literal || !Literal->isAscii()) {
872 if (Literal->containsNonAsciiOrNull()) {
873 StringRef String = Literal->getString();
    [all...]
  /external/v8/src/
ast.cc 171 ObjectLiteral::Property::Property(Literal* key, Expression* value) {
190 key_ = new Literal(value->name());
245 Literal* literal = property->key(); local
246 Handle<Object> handle = literal->handle();
484 bool Literal::IsInlineable() const {
616 Literal* lit_key = key()->AsLiteral();
638 Literal* lit_key = prop->key()->AsLiteral();
740 Literal* key = property->key()->AsLiteral();
814 // undefined expression or literal? Revisit this code if thi
    [all...]
parser.h 167 // function literal. Returns false (and deallocates any allocated AST
341 // Reports whether the pattern might be used as a literal search string.
539 // literal.
547 // Populate the literals fixed array for a materialized array literal.
555 // If the expression is a literal, return the literal value;
556 // if the expression is a materialized literal and is simple return a
558 // Otherwise, return undefined literal as the placeholder
559 // in the object literal boilerplate.
630 Literal* GetLiteralUndefined()
    [all...]
ast.h 78 V(Literal) \
252 // True iff the expression is a literal represented as a smi.
474 // True if there is a function literal subexpression in the condition.
520 // True if there is a function literal subexpression in the condition.
839 class Literal: public Expression {
841 explicit Literal(Handle<Object> handle) : handle_(handle) { }
843 DECLARE_NODE_TYPE(Literal)
848 // Check if this literal is identical to the other literal.
849 bool IsIdenticalTo(const Literal* other) const
    [all...]
parser.cc 721 // Parse the function literal.
867 Literal* key1 = p1->key()->AsLiteral();
868 Literal* key2 = p2->key()->AsLiteral();
996 Literal* literal = property->key()->AsLiteral(); local
998 if (literal != NULL &&
999 literal->handle()->IsString() &&
1000 !String::cast(*(literal->handle()))->Equals(
1002 !String::cast(*(literal->handle()))->AsArrayIndex(&dummy)) {
1003 Handle<String> key = Handle<String>::cast(literal->handle())
1009 Literal* literal = assignment->value()->AsLiteral(); local
1114 Literal *literal; local
    [all...]
data-flow.cc 106 Literal* init_lit = init->value()->AsLiteral();
122 Literal* term_lit = cond->right()->AsLiteral();
352 void AssignedVariablesAnalyzer::VisitLiteral(Literal* expr) {
rewriter.cc 231 void Processor::VisitLiteral(Literal* node) {
prettyprinter.cc 247 void PrettyPrinter::VisitLiteral(Literal* node) {
336 Literal* literal = key->AsLiteral(); local
337 if (literal != NULL && literal->handle()->IsSymbol()) {
341 PrintLiteral(literal->handle(), false);
548 Print("<unknown literal %p>", object);
880 IndentedScope indent(this, "FUNC LITERAL");
884 // We don't want to see the function literal in this case: it
893 IndentedScope indent(this, "FUNC LITERAL");
1001 Literal* literal = node->key()->AsLiteral(); local
    [all...]
scopes.cc 328 new Literal(Handle<Object>(Smi::FromInt(index))),
720 // the name of named function literal is kept in an intermediate scope
    [all...]
  /external/clang/lib/CodeGen/
CodeGenModule.cpp     [all...]
CodeGenModule.h 545 /// getGenericBlockLiteralType - The type of a generic block literal.
553 /// literal, properly padded to match the literal type. If only the address of
559 llvm::Constant *GetAddrOfConstantCFString(const StringLiteral *Literal);
564 llvm::Constant *GetAddrOfConstantString(const StringLiteral *Literal);
567 /// for the given string literal.
575 /// containing the literal. This contents are exactly that of the given
589 /// containing the literal and a terminating '\0' character. The result has
    [all...]
CGExprConstant.cpp 925 const StringLiteral *Literal = cast<StringLiteral>(Arg);
928 return CGM.getObjCRuntime().GenerateConstantString(Literal);
    [all...]

Completed in 1440 milliseconds

1 2