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

CTestDouble: Fix "surprising behavior" of --gen-pre-incl and post #295

Open
joakim-brannstrom opened this issue Mar 4, 2017 · 0 comments

Comments

@joakim-brannstrom
Copy link
Owner

The generation of the files need to be split from the above flags.

The intention of the flags --gen-pre-incl/post is to allow the user to inject "hooks" before and after the headers of what has been test doubled away.

Problem:

  • The flags generate ready-to-use hooks with the content of the most common use case.
  • In contrast to what dextool do in other cases the files are not overwritten in this case if they already exist.

Proposed solution:

  • Introduce a new flag, --gen-cpp-hooks. It generates the default hooks that suppressed __cplusplus.
  • Change --gen-pre-incl and post to not generate any files. To only inject the "#include"-hooks
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