Lines Matching refs:musttail
5 …[[clang::musttail]] ReturnsInt1(); // expected-error {{'musttail' attribute only appl… in Func1()
6 …[[clang::musttail(1, 2)]] return ReturnsInt1(); // expected-error {{'musttail' attribute takes no … in Func1()
7 …[[clang::musttail]] return 5; // expected-error {{'musttail' attribute requires … in Func1()
8 [[clang::musttail]] return ReturnsInt1(); in Func1()
12 …[[clang::musttail]] return; // expected-error {{'musttail' attribute requires that the return valu… in NoFunctionCall()
15 [[clang::musttail]] static int int_val = ReturnsInt1(); // expected-error {{'musttail' attribute ca…
19 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestParamArityMismatch()
25 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestParamTypeMismatch()
31 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestReturnTypeMismatch()
40 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestNonMemberToMember()
47 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestMemberToNonMember()
61 …[[clang::musttail]] return ReturnsVoid(); // expected-error {{cannot perform a tail call from this… in TestNonTrivialDestructorInScope()
66 …[[clang::musttail]] return NonTrivialParam(x); // expected-error {{tail call requires that the ret… in TestNonTrivialParam()
74 …[[clang::musttail]] return (ReturnsNonTrivialValue()); // expected-error {{tail call requires that… in TestReturnsNonTrivialValue()
78 …[[clang::musttail]] return HasNonTrivialDestructor(); // expected-error {{'musttail' attribute req… in TestReturnsNonTrivialNonFunctionCall()
86 …[[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestUsesPointerToMember()
96 [[clang::musttail]] return ReturnsVoid2(); in TestNestedClass()
106 [[clang::musttail]] return TemplateFunc<int>(x); in OkTemplateFunc()
110 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in BadTemplateFunc()
120 …[[clang::musttail]] return IntParam(x); // expected-error {{cannot perform a tail call from this r… in TestVLA()
124 …[[clang::musttail]] return IntParam(NonTrivialParam(HasNonTrivialDestructor())); // expected-error… in TestNonTrivialDestructorSubArg()
129 …[[clang::musttail]] return VariadicFunction(x); // expected-error {{'musttail' attribute may not b… in TestVariadicFunction()
135 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestIntParamMismatch()
139 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestIntParamMismatch2()
149 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in FromFunction()
156 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestMismatchCallingConvention()
162 …[[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute h… in TestNonCapturingLambda()
167 [[clang::musttail]] return lambda_fptr(); in TestNonCapturingLambda()
168 [[clang::musttail]] return (+lambda)(); in TestNonCapturingLambda()
174 …[[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute … in TestCapturingLambda()
179 …[[clang::musttail]] return TakesIntParam(HasNonTrivialDestructor().ReturnsInt()); // expected-erro… in TestNonTrivialTemporary()
185 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in ~TestDestructor()
192 …[[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute… in TestExplicitDestructorCall()
204 …[[clang::musttail]] return HasNonTrivialCopyConstructor(ReturnsClassByValue()); // expected-error{… in TestNonElidableCopyConstructor()
211 …[[clang::musttail]] // expected-note {{tail call required by 'm… in TestExplicitConstructorCall()
218 …[[clang::musttail]] return ReturnsVoid2(); // expected-error {{cannot perform a tail call from thi… in TestStatementExpression()
225 …[[clang::musttail]] return ReturnsVoid2(); // expected-error {{cannot perform a tail call from thi… in TestTryBlock()
233 …[[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestRValueFunctionPointer()
240 [[clang::musttail]] // expected-note {{tail call required by 'musttail' attribute here}} in TestPseudoDestructor()
252 [[clang::musttail]] // expected-note{{tail call required by 'musttail' attribute here}} in TestReturnsPMF()
262 …[[clang::musttail]] return ((*this)->*pmf)(); // expected-error {{left hand operand to ->* must be… in BadPMF()
268 …[[clang::musttail]] return ns; // expected-error {{unexpected namespace name 'ns': expected expres… in TestCallNonValue()