Searched defs:constexpr (Results 1 - 5 of 5) sorted by relevance

/external/clang/test/Lexer/
H A Dcxx0x_keyword_as_cxx98.cpp3 #define constexpr const macro
4 constexpr int x = 0;
5 #undef constexpr macro
14 int CONCAT(constexpr,ession);
31 int constexpr; // expected-warning {{'constexpr' is a keyword in C++11}} variable
H A Dkeywords_test.cpp51 CXX11_KEYWORD(constexpr); variable
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp1.cpp13 constexpr int i1 = 0;
14 constexpr int f1() { return 0; }
16 constexpr static int mi1 = 0;
19 constexpr int s1::mi2 = 0;
23 constexpr extern int i2; // expected-error {{constexpr variable declaration must be a definition}}
25 constexpr notlit nl1; // expected-error {{constexpr variable cannot have non-literal type 'const notlit'}}
27 void f2(constexpr int i) {} // expected-error {{function parameter cannot be constexpr}}
49 class C2 {} constexpr; // expected-error {{class cannot be marked constexpr}} variable in typeref:class:C2
50 struct S2 {} constexpr; // expected-error {{struct cannot be marked constexpr}} variable in typeref:struct:S2
51 union U2 {} constexpr; // expected-error {{union cannot be marked constexpr}} variable in typeref:union:U2
52 enum E2 {} constexpr; // expected-error {{enum cannot be marked constexpr}} variable in typeref:enum:E2
[all...]
/external/clang/test/Preprocessor/
H A Dcxx_oper_keyword_ms_compat.cpp40 #define constexpr macro
125 constexpr
/external/flatbuffers/include/flatbuffers/
H A Dflatbuffers.h55 // and constexpr keywords. Note the __clang__ check is needed, because clang
65 #ifndef constexpr
66 #define constexpr const macro
105 #define FLATBUFFERS_CONSTEXPR constexpr

Completed in 190 milliseconds