[cfe-commits] [PATCH][Review request]Support for c++0x nullptr in static analyzer
Douglas Gregor
dgregor at apple.com
Wed Apr 20 16:15:41 PDT 2011
On Apr 20, 2011, at 3:52 PM, Jim Goodnow II wrote:
> Hi Ted,
>
> Yes, we do. The real purpose of the nullptr is the last part of the test
> program where it allows you to distinguish between two overloaded
> functions, i.e.:
>
> void func( int );
> void func( int *);
>
> If you call it with the standard NULL, it will call the "int" version,
> whereas if you call it with nullptr, it will call the "int *" version.
That shouldn't matter to the static analyzer, since Sema has already performed overload resolution long before the static analyzer ever sees the AST.
- Doug
More information about the cfe-commits
mailing list