-
Notifications
You must be signed in to change notification settings - Fork 1
Replace assert macro #16
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
Conversation
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.
clang-tidy made some suggestions
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.
clang-tidy made some suggestions
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
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.
clang-tidy made some suggestions
@@ -10,6 +10,7 @@ using ConfigOption = CLArgs::Option<"--config,--configuration,-c", "<filepath>", | |||
int | |||
main(int argc, char **argv) | |||
{ | |||
int s = 3; |
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.
warning: unused variable 's' [clang-diagnostic-unused-variable]
int s = 3;
^
Replaced
CLARGS_ASSERT()
macro withCLArgs::_internal::debug_assert()
function. Function-like macros contradict ES.31 in the C++ Core Guidelines and tend to clutter the global namespace, which is less than optimal for a library.Closes #12.