Skip to content
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

Rewriting of #ifdefs #3

Open
clhunsen opened this issue Sep 19, 2014 · 0 comments
Open

Rewriting of #ifdefs #3

clhunsen opened this issue Sep 19, 2014 · 0 comments
Milestone

Comments

@clhunsen
Copy link
Collaborator

Right now, during the execution of the 'general' analysis, the #ifdef expressions get rewritten with following pattern. Make this configurable.
see: analyses/general.py, function _getFeatureSignature()

Example

#ifdef A && B
  #ifdef C
  #endif
#elif D
#else
#endif

gets

#ifdef A && B
  #if (A && B) && C
  #endif
#elif !(A && B) && D
#**elif !(A && B)** && !(D)
#endif

Enchancement Idea

This behavior should be configurable to influence the following scattering and tangling analyses to the user's requirements.

Like: --rewriteifdefs [yes | no]

  • yes
    • The #ifdef expressions get rewritten as described before
    • This should be default, as it is the bahvior from previous studies.
  • no
    • No rewriting is performed.
    • This yields no expression for an #else branch, for example!
@clhunsen clhunsen added this to the 0.8.5 milestone Sep 19, 2014
@clhunsen clhunsen self-assigned this Sep 22, 2014
@clhunsen clhunsen removed their assignment Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant