Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CODAN question for function can not be resolved AND invalid arguments!

There is no "binding" problem here. C functions cannot be overloaded
so it binds to only available function.
We simply do not have Semantic checker for this case - it has to be
different than Binding checker.

2010/9/3 Tomasz Wesołowski <kosashi@xxxxxxxxx>:
> I believe that what matters here is not the project language, but the
> language of the given translation unit which determines the type of parser
> to be used.
>
> It seems that the C-parser (contrary to C++-parser) won't generate the
> instance of IProblemBinding when encountering a function call with
> incompatible parameters, so ProblemBindingChecker cannot generate the
> warning message.
>
> Hence, this looks like a parser bug (not a Codan bug).
>
>
> On Fri, Sep 3, 2010 at 2:37 AM, Figuer, Felipe A
> <Felipe.A.Figuer@xxxxxxxxxx> wrote:
>>
>> The referred file Sample.c is within the source directory.
>>
>>
>>
>> On the other hand when I tried all this in a C++ project NOT a C project
>> the invalid arguments are wonderfully detected.
>>
>>
>>
>> Curiously for the C++ project I did not customize any rule and it worked
>> flawlessly for detecting the wrong arguments.
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>


Back to the top