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

Make clang-tidy happier #22

Merged
merged 3 commits into from
Oct 22, 2021
Merged

Make clang-tidy happier #22

merged 3 commits into from
Oct 22, 2021

Conversation

finalpatch
Copy link
Contributor

Change by Eric Ulevik:

clang-tidy complains about single-argument constructors not being explicit. Changing the constructors to be explicit would require more code changes, so disable using NOLINT.

clang-tidy complains about not using ' = default;', this was fixed.

@@ -19,6 +19,7 @@ struct EnumUsageRecord final {
std::unordered_set<color> s;
std::unordered_map<color, color> m;

//NOLINTNEXTLINE(google-explicit-constructor)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explciit only applies to single parameter constructors. why do we need this here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed codegen, only add NOLINT for records with exactly 1 field.

@finalpatch finalpatch merged commit 33681e2 into master Oct 22, 2021
@finalpatch finalpatch deleted the lf/tidy branch October 22, 2021 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants