voidzend_do_begin_function_declaration(znode *function_token, znode *function_name,intis_method,intreturn_reference, znode *fn_flags_znode TSRMLS_DC)/*{{{*/{ zend_op_array op_array;char*name = function_name->u.constant.value.str.val;intname_len = function_name->u.constant.value.str.len...
__attribute__((warning("oh no")))voidf(); GCC reports warning: warning: call to ‘f’ declared with attribute warning: oh no f(); ^~~ But clang (with modifications where we apply the attribute for all redeclarations) says nothing. Seems the problem is that clang processesf()call be...
As with any declaration, attributes that appear before the declaration and the attributes that appear immediately after the identifier within the declarator both apply to the entity being declared or defined (in this case, to the function): [[noreturn]] void f [[noreturn]] (); // OK: ...
1)New-style (C89) function definition. This definition both introduces the function itself and serves as a function prototype for any futurefunction call expressions, forcing conversions from argument expressions to the declared parameter types. ...
Tl;dr: building a simple DeepState testcase as shown below, gives the -Wmissing-noreturn warning. This might be an issue if DeepState is incorporated into a codebase that uses -Werror. Example code #include <deepstate/DeepState.hpp> usin...
Return value of function is written to N-bit variable. V1030. Variable is used after it is moved. V1031. Function is not declared. The passing of data to or from this function may be affected. V1032. Pointer is cast to a more strictly aligned pointer type. V1033. Variable is ...
V1117. The declared function type is cv-qualified. The behavior when using this type is undefined. General Analysis (C#) V3001. There are identical sub-expressions to the left and to the right of the 'foo' operator. V3002. The switch statement does not cover all values of the enum....
V1117. The declared function type is cv-qualified. The behavior when using this type is undefined. General Analysis (C#) V3001. There are identical sub-expressions to the left and to the right of the 'foo' operator. V3002. The switch statement does not cover all values of the enum....
Return value of function is written to N-bit variable. V1030. Variable is used after it is moved. V1031. Function is not declared. The passing of data to or from this function may be affected. V1032. Pointer is cast to a more strictly aligned pointer type. V1033. Variable is ...
Conversion function is declared like anon-static member functionor memberfunction templatewith no parameters, no explicit return type, and with the name of the form: operatorconversion-type-id(1) explicitoperatorconversion-type-id(2)(since C++11) ...