-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CDT parser include file handling and support recursion for includes #639
base: dev
Are you sure you want to change the base?
Fix CDT parser include file handling and support recursion for includes #639
Conversation
With this option, include files can be added recursively from subdirectories of include paths as well.
This test suite implements various test cases intended to test the parsing of C programs that include header files. Each test case modifies the CDT parser settings for an automatic test setup to check the different include path configurations.
Note that the fix for the CDT parser include handling in this patch still has some limitations and missing features that still need to be improved to complete all test cases successfully:
|
This patch fixes the C preprocessor to support the parsing and substitution of the following macros: - #define - #undef - #if - #ifdef - #ifndef - #elif - #else - #endif - #error Note that ACSL expressions cannot contain macros, as these are in comments where parsing and substitution is not possible.
@@ -0,0 +1,34 @@ | |||
//#Unafe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//#Unsafe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out the invalid program correctness specifier.
This patch adds a new CDT parser option to support recursive adding of include files. With this option, include files can be added recursively from subdirectories of include paths as well. This patch also fixes the existing CDT parser include file handling and adds a CDT parser test suite. The test suite implements various test cases intended to test the parsing of C programs that include header files. Each test case modifies the CDT parser settings for an automatic test setup to check the different include path configurations.