On Wed, Mar 20, 2013 at 5:16 PM, Tareq A. Siraj <[email protected]>wrote:

>
>
> ================
> Comment at: cpp11-migrate/UseNullptr/NullptrActions.cpp:125
> @@ +124,3 @@
> +    // coming from a macro called NULL.
> +    if (SM.isMacroArgExpansion(StartLoc) &&
> SM.isMacroArgExpansion(EndLoc)) {
> +      StartLoc = SM.getFileLoc(StartLoc);
> ----------------
> Manuel Klimek wrote:
> > I assume we don't care that those can both be true, but start and end
> can still be produced from different macro expansions? Or do we check that
> somewhere else?
> Can you provide an example for start/end coming from different macro
> expansions in case of ImplicitCastNodes? I don't think we do this check but
> is it really necessary for ImplicitCastNodes? Thanks.
>

Well, I'm not sure. What about:
#define B(X) X ## .742

void f(int i) {
  f(B(3));
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to