raw(Param x)1MAYBE_STATIC void raw(Param x) {} 2 raw(NonParam x)3MAYBE_STATIC void raw(NonParam x) {} //expected-error {{Type 'NonParam' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} raw(NonParamUnion x)4MAYBE_STATIC void raw(NonParamUnion x) {} //expected-error {{Type 'NonParamUnion' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} raw(NonParamClass x)5MAYBE_STATIC void raw(NonParamClass x) {} //expected-error {{Type 'NonParamClass' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} raw(NonParamEnum x)6MAYBE_STATIC void raw(NonParamEnum x) {} //expected-error {{Type 'NonParamEnum' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} raw(NonParamEnumClass x)7MAYBE_STATIC void raw(NonParamEnumClass x) {} //expected-error {{Type 'NonParamEnumClass' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} raw(HasNonParamStruct x)8MAYBE_STATIC void raw(HasNonParamStruct x) {} //expected-error {{Type 'HasNonParamStruct' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} raw(HasNonParamUnion x)9MAYBE_STATIC void raw(HasNonParamUnion x) {} //expected-error {{Type 'HasNonParamUnion' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} raw(HasNonParamStructUnion x)10MAYBE_STATIC void raw(HasNonParamStructUnion x) {} //expected-error {{Type 'HasNonParamStructUnion' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} 11 const_(const NonParam x)12MAYBE_STATIC void const_(const NonParam x) {} //expected-error {{Type 'NonParam' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} const_(const NonParamUnion x)13MAYBE_STATIC void const_(const NonParamUnion x) {} //expected-error {{Type 'NonParamUnion' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} const_(const NonParamClass x)14MAYBE_STATIC void const_(const NonParamClass x) {} //expected-error {{Type 'NonParamClass' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} const_(const NonParamEnum x)15MAYBE_STATIC void const_(const NonParamEnum x) {} //expected-error {{Type 'NonParamEnum' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} const_(const NonParamEnumClass x)16MAYBE_STATIC void const_(const NonParamEnumClass x) {} //expected-error {{Type 'NonParamEnumClass' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} const_(const HasNonParamStruct x)17MAYBE_STATIC void const_(const HasNonParamStruct x) {} //expected-error {{Type 'HasNonParamStruct' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} const_(const HasNonParamUnion x)18MAYBE_STATIC void const_(const HasNonParamUnion x) {} //expected-error {{Type 'HasNonParamUnion' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} const_(const HasNonParamStructUnion x)19MAYBE_STATIC void const_(const HasNonParamStructUnion x) {} //expected-error {{Type 'HasNonParamStructUnion' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} 20 array(NonParam x[])21MAYBE_STATIC void array(NonParam x[]) {} array(NonParamUnion x[])22MAYBE_STATIC void array(NonParamUnion x[]) {} array(NonParamClass x[])23MAYBE_STATIC void array(NonParamClass x[]) {} array(NonParamEnum x[])24MAYBE_STATIC void array(NonParamEnum x[]) {} array(NonParamEnumClass x[])25MAYBE_STATIC void array(NonParamEnumClass x[]) {} array(HasNonParamStruct x[])26MAYBE_STATIC void array(HasNonParamStruct x[]) {} array(HasNonParamUnion x[])27MAYBE_STATIC void array(HasNonParamUnion x[]) {} array(HasNonParamStructUnion x[])28MAYBE_STATIC void array(HasNonParamStructUnion x[]) {} 29 ptr(NonParam * x)30MAYBE_STATIC void ptr(NonParam* x) {} ptr(NonParamUnion * x)31MAYBE_STATIC void ptr(NonParamUnion* x) {} ptr(NonParamClass * x)32MAYBE_STATIC void ptr(NonParamClass* x) {} ptr(NonParamEnum * x)33MAYBE_STATIC void ptr(NonParamEnum* x) {} ptr(NonParamEnumClass * x)34MAYBE_STATIC void ptr(NonParamEnumClass* x) {} ptr(HasNonParamStruct * x)35MAYBE_STATIC void ptr(HasNonParamStruct* x) {} ptr(HasNonParamUnion * x)36MAYBE_STATIC void ptr(HasNonParamUnion* x) {} ptr(HasNonParamStructUnion * x)37MAYBE_STATIC void ptr(HasNonParamStructUnion* x) {} 38 ref(NonParam & x)39MAYBE_STATIC void ref(NonParam& x) {} ref(NonParamUnion & x)40MAYBE_STATIC void ref(NonParamUnion& x) {} ref(NonParamClass & x)41MAYBE_STATIC void ref(NonParamClass& x) {} ref(NonParamEnum & x)42MAYBE_STATIC void ref(NonParamEnum& x) {} ref(NonParamEnumClass & x)43MAYBE_STATIC void ref(NonParamEnumClass& x) {} ref(HasNonParamStruct & x)44MAYBE_STATIC void ref(HasNonParamStruct& x) {} ref(HasNonParamUnion & x)45MAYBE_STATIC void ref(HasNonParamUnion& x) {} ref(HasNonParamStructUnion & x)46MAYBE_STATIC void ref(HasNonParamStructUnion& x) {} 47 constRef(const NonParam & x)48MAYBE_STATIC void constRef(const NonParam& x) {} constRef(const NonParamUnion & x)49MAYBE_STATIC void constRef(const NonParamUnion& x) {} constRef(const NonParamClass & x)50MAYBE_STATIC void constRef(const NonParamClass& x) {} constRef(const NonParamEnum & x)51MAYBE_STATIC void constRef(const NonParamEnum& x) {} constRef(const NonParamEnumClass & x)52MAYBE_STATIC void constRef(const NonParamEnumClass& x) {} constRef(const HasNonParamStruct & x)53MAYBE_STATIC void constRef(const HasNonParamStruct& x) {} constRef(const HasNonParamUnion & x)54MAYBE_STATIC void constRef(const HasNonParamUnion& x) {} constRef(const HasNonParamStructUnion & x)55MAYBE_STATIC void constRef(const HasNonParamStructUnion& x) {} 56 inlineRaw(NonParam x)57MAYBE_STATIC inline void inlineRaw(NonParam x) {} //expected-error {{Type 'NonParam' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} inlineRaw(NonParamUnion x)58MAYBE_STATIC inline void inlineRaw(NonParamUnion x) {} //expected-error {{Type 'NonParamUnion' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} inlineRaw(NonParamClass x)59MAYBE_STATIC inline void inlineRaw(NonParamClass x) {} //expected-error {{Type 'NonParamClass' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} inlineRaw(NonParamEnum x)60MAYBE_STATIC inline void inlineRaw(NonParamEnum x) {} //expected-error {{Type 'NonParamEnum' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} inlineRaw(NonParamEnumClass x)61MAYBE_STATIC inline void inlineRaw(NonParamEnumClass x) {} //expected-error {{Type 'NonParamEnumClass' must not be used as parameter}} expected-note {{Please consider passing a const reference instead}} 62