Skip to content

Clang-Tidy: Rule of Five#790

Open
ax3l wants to merge 1 commit intoopenPMD:devfrom
ax3l:topic-ruleOfFive
Open

Clang-Tidy: Rule of Five#790
ax3l wants to merge 1 commit intoopenPMD:devfrom
ax3l:topic-ruleOfFive

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Oct 1, 2020

Add a clang-tidy check that makes sure the rule of zero/five is obeyed.

Core Rule guideline C.21
(Note sure if this clang-tidy check also covers C.20... aka "rule of zero")

https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-special-member-functions.html

@ax3l ax3l force-pushed the topic-ruleOfFive branch from 16fc707 to 98ea0f8 Compare October 1, 2020 05:45
@ax3l ax3l changed the title Clang-Tidy: Rule of Five/Zero Clang-Tidy: Rule of Five Oct 1, 2020
@@ -1,5 +1,8 @@
HeaderFilterRegex: '((^(?!\/share\/openPMD\/).*)*include\/openPMD\/.+\.hpp|src\/^(?!binding).+\.cpp$)'
Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, do we filter too many files here?
My IDE shows more locations than the examples...

@ax3l ax3l requested a review from franzpoeschel October 15, 2020 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant