Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/mp/test/foo.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct FooStruct
std::vector<bool> vbool;
};

enum class FooEnum : int { ONE = 1, TWO = 2, };
enum class FooEnum : int { ONE = 1, TWO = 2, }; // NOLINT(performance-enum-size)
Copy link
Collaborator

Choose a reason for hiding this comment

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

In commit "clang-tidy: Suppress performance-enum-size check warning" (19d7537)

This seems like another thing that would be nice to fix instead of nolint. These things can be done as followups since it is easy to search for nolint.

Copy link
Contributor

Choose a reason for hiding this comment

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

This works:

-enum class FooEnum : int { ONE = 1, TWO = 2, }; // NOLINT(performance-enum-size)
+enum class FooEnum : uint8_t { ONE = 1, TWO = 2, };

Copy link
Collaborator

Choose a reason for hiding this comment

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

re: #144 (comment)

This is done in #152


struct FooCustom
{
Expand Down