CDT does not index code between #if .... #endif [message #1751737] |
Fri, 13 January 2017 05:06  |
Eclipse User |
|
|
|
I am using CDT version 9.x.x with eclipse Neon. I am using the CDT APIs to get the function calls inside of a function. When a conditional compilation statement as below is encountered this version of CDT is not getting the function calls inside #if statement rather gets the call in #else. In the below example it extracts func3() but func2() is expected as the macro NLC_LS_AVL is defined to 1 in the header file and if we preprocess the C file the function call inside #if i.e. func2(), by the pre-processor.
The same code works in eclipse Indigo and CDT 8.0.2 where the function calls inside #if are extracted i.e. func2() is extracted.
Is there any additional configuration that needs to be taken care for CDT 9.X.X for it get the right active code for conditional compilation statements? If so can anyone suggest?
Exmaple:
\#if (NLC_LS_AVL == 1)
 func2(); <br>
\#else<br>
 func3();<br>
\#endif
|
|
|
|
Powered by
FUDForum. Page generated in 0.03268 seconds