-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Fully Compatible
-
Dev Tools 2019-10-07
-
50
As detailed in SERVER-27897, and the linked issues from there, unused RAII objects are often an indication of bugs. To avoid recurrence of this class of bugs, we need additional checking. As max.hirschhorn noted, `clang-tidy` provides just that: http://clang.llvm.org/extra/clang-tidy/checks/misc-unused-raii.html
This ticket is to add such checking.
- depends on
-
SERVER-27897 Remove uses of temporary RAII objects
- Closed
- related to
-
SERVER-49800 add use-after-move rule to clang-tidy evergreen builder
- Closed
-
SERVER-50165 parallelize clang-tidy task
- Closed
-
SERVER-51240 Add clang tidy rules to prevent const return by value and (in declarations) const pass by value
- Closed
-
SERVER-54210 add clang-tidy to commit queue tasks
- Closed