Il 19/11/2010 21:54, Argyrios Kyrtzidis ha scritto: > Author: akirtzidis > Date: Fri Nov 19 14:54:25 2010 > New Revision: 119838 > > URL: http://llvm.org/viewvc/llvm-project?rev=119838&view=rev > Log: > Don't warn for empty 'if' body if there is a macro that expands to nothing, > e.g: > > if (condition) > CALL(0); // empty macro but don't warn for empty body.
Is not this approach way too much ad hoc, is it? What about loop body, else stmt and who knows how many places we might be interested... Is not better to have the flag in NullStmt or to use another way to detect this situation? _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
