On Mon, 2 Jan 2012, SF Markus Elfring wrote:
__c: present in 6 parsing errors
example:
extern "C++" char *strchrnul (char *__s, int __c)
__THROW __asm ("strchrnul") __attribute_pure__ __nonnull ((1));
I don't see any solution for this case. There is no way to tell it to
ignore
"C++" as far as I know.
I assume that the tool doesn't need to parse this source code area because I
would expect that a preprocessor symbol like
"__CORRECT_ISO_CPP_STRING_H_PROTO" will not be defined. Can the Coccinelle
software skip any corresponding parts?
By failing, it skips the code. Unparsed source code only matters if your
rule should actually do anything with that code. Since the support for
C++ code is very minimal, it does not seem useful to parse the prototype
of a C++ function.
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)