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

Enable clang-tidy cert-dcl58-cpp #65784

Merged

Conversation

jbytheway
Copy link
Contributor

Summary

None

Purpose of change

Static analysis.

This check looks for inappropriately adding to namespace std.

Describe the solution

Re-enable this check and suppress the false-positives it was producing.

Also refactor some of the template specializations now that I've learnt a better way to write them (without explicitly opening namespace std).

The issue regarding these false-positives can be found here. Once that is fixed these suppressions can be removed.

Describe alternatives you've considered

Leaving this check disabled until the bug is fixed.

Testing

Run clang-tidy.

Additional context

Re-enable this check and suppress the false-positives it was producing.

The issue regarding these false-positives can be found at
llvm/llvm-project#45454

Once that is fixed these suppressions can be removed.
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Map / Mapgen Overmap, Mapgen, Map extras, Map display json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels May 21, 2023
@bombasticSlacks bombasticSlacks merged commit 8aef4d0 into CleverRaven:master May 22, 2023
@jbytheway jbytheway deleted the clang-tidy_cert-dcl58-cpp branch May 22, 2023 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style json-styled JSON lint passed, label assigned by github actions Map / Mapgen Overmap, Mapgen, Map extras, Map display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants