We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NOLINT
ErrorCode
In error_handling/ErrorCode.hpp there is the following macro that we use NOLINT to avoid clang-tidy issues.
// NOLINTBEGIN(bugprone-macro-parentheses, cppcoreguidelines-macro-usage) #define CLP_ERROR_HANDLING_MARK_AS_ERROR_CODE_ENUM(T) \ template <> \ struct std::is_error_code_enum<clp::error_handling::ErrorCode<T>> : std::true_type { \ static_assert(std::is_enum_v<T>); \ }; // NOLINTEND(bugprone-macro-parentheses, cppcoreguidelines-macro-usage)
After skimming the clang-tidy documentation for the two issues [1, 2] it seems possible to satisfy these checks, but more investigation is needed.
refs:
For cppcoreguidelines-macro-usage:
cppcoreguidelines-macro-usage
AllowedRegexp
For bugprone-macro-parentheses:
bugprone-macro-parentheses
The text was updated successfully, but these errors were encountered:
davidlion
No branches or pull requests
Request
In error_handling/ErrorCode.hpp there is the following macro that we use
NOLINT
to avoid clang-tidy issues.After skimming the clang-tidy documentation for the two issues [1, 2] it seems possible to satisfy these checks, but more investigation is needed.
refs:
Possible implementation
For
cppcoreguidelines-macro-usage
:AllowedRegexp
option to allow the macroFor
bugprone-macro-parentheses
:The text was updated successfully, but these errors were encountered: