-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
Command line flags do not work after code formatter/beautifier #104
Comments
For that particular piece of code I've turned off clang-format (using I'm not sure what to do about this... Can you download the header file and just open/use it instead of pasting its contents in VS? |
Sure, I'v already downloaded the file (and exclude it from pre-git-hook style tools). |
I'll think about how to avoid this, thanks :) |
BTW is there some penalty (compile time) with quoted strings as macros arguments? |
If you are wondering if I can pass something like |
Description
Visual studio 2017 automatically formats code when I paste code from github.com/doctest.h. Everything works fine, but a few command line flags.
I guess, additional spaces in calls DOCTEST_PARSE_AS_BOOL_OR_FLAG do the bug.
Steps to reproduce
Add spaces (around '-') to:
DOCTEST_PARSE_AS_BOOL_OR_FLAG(dt - exit, dt - e, exit, false);
Now,
shouldExit()
always returns false (with "--exit" arg).Extra information
The text was updated successfully, but these errors were encountered: