[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Query regarding macro expansion

No there is no way to make preprocessor not to expand macro. 
However some checkers have user configurable parameters to suppress warning in macro definitions and have exception list. 
What problem you refer to specifically?

On Thu, Jul 29, 2010 at 4:09 AM, SANJAY GUPTA <gupta.sanjay@xxxxxxxxxxx> wrote:

Hi All,

 

I am using CODAN to statically analyze a source code. I have a query that CDT parser expands all the macros in the source code if it finds their definitions. Is there any way we can configure CDT not to expand macros ?

 

The problem I face with the macro expansion is that, if the macro definition has certain rule violation, the CODAN raises violations at all the places in source where the macro is used.


Thanks and regards,
Sanjay Gupta

 



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


JPEG image