@@ -70,6 +70,86 @@ Improvements to clang-tidy
70
70
- New :doc: `bugprone-dynamic-static-initializers
71
71
<clang-tidy/checks/bugprone-dynamic-static-initializers>` check.
72
72
73
+ - New OpenMP module.
74
+
75
+ For checks specific to `OpenMP <https://www.openmp.org/ >`_ API.
76
+
77
+ - New :doc: `abseil-duration-addition
78
+ <clang-tidy/checks/abseil-duration-addition>` check.
79
+
80
+ Checks for cases where addition should be performed in the ``absl::Time ``
81
+ domain.
82
+
83
+ - New :doc: `abseil-duration-conversion-cast
84
+ <clang-tidy/checks/abseil-duration-conversion-cast>` check.
85
+
86
+ Checks for casts of ``absl::Duration `` conversion functions, and recommends
87
+ the right conversion function instead.
88
+
89
+ - New :doc: `abseil-duration-unnecessary-conversion
90
+ <clang-tidy/checks/abseil-duration-unnecessary-conversion>` check.
91
+
92
+ Finds and fixes cases where ``absl::Duration `` values are being converted to
93
+ numeric types and back again.
94
+
95
+ - New :doc: `abseil-time-comparison
96
+ <clang-tidy/checks/abseil-time-comparison>` check.
97
+
98
+ Prefer comparisons in the ``absl::Time `` domain instead of the integer
99
+ domain.
100
+
101
+ - New :doc: `abseil-time-subtraction
102
+ <clang-tidy/checks/abseil-time-subtraction>` check.
103
+
104
+ Finds and fixes ``absl::Time `` subtraction expressions to do subtraction
105
+ in the Time domain instead of the numeric domain.
106
+
107
+ - New :doc: `android-cloexec-pipe
108
+ <clang-tidy/checks/android-cloexec-pipe>` check.
109
+
110
+ This check detects usage of ``pipe() ``.
111
+
112
+ - New :doc: `android-cloexec-pipe2
113
+ <clang-tidy/checks/android-cloexec-pipe2>` check.
114
+
115
+ This checks ensures that ``pipe2() `` is called with the O_CLOEXEC flag.
116
+
117
+ - New :doc: `bugprone-infinite-loop
118
+ <clang-tidy/checks/bugprone-infinite-loop>` check.
119
+
120
+ Finds obvious infinite loops (loops where the condition variable is not
121
+ changed at all).
122
+
123
+ - New :doc: `bugprone-unhandled-self-assignment
124
+ <clang-tidy/checks/bugprone-unhandled-self-assignment>` check.
125
+
126
+ Finds user-defined copy assignment operators which do not protect the code
127
+ against self-assignment either by checking self-assignment explicitly or
128
+ using the copy-and-swap or the copy-and-move method.
129
+
130
+ - New :doc: `bugprone-branch-clone
131
+ <clang-tidy/checks/bugprone-branch-clone>` check.
132
+
133
+ Checks for repeated branches in ``if/else if/else `` chains, consecutive
134
+ repeated branches in ``switch `` statements and indentical true and false
135
+ branches in conditional operators.
136
+
137
+ - New :doc: `bugprone-posix-return
138
+ <clang-tidy/checks/bugprone-posix-return>` check.
139
+
140
+ Checks if any calls to POSIX functions (except ``posix_openpt ``) expect negative
141
+ return values.
142
+
143
+ - New :doc: `fuchsia-default-arguments-calls
144
+ <clang-tidy/checks/fuchsia-default-arguments-calls>` check.
145
+
146
+ Warns if a function or method is called with default arguments.
147
+ This was previously done by `fuchsia-default-arguments check `, which has been
148
+ removed.
149
+
150
+ - New :doc: `fuchsia-default-arguments-calls
151
+ <clang-tidy/checks/fuchsia-default-arguments-calls>` check.
152
+
73
153
Finds instances where variables with static storage are initialized
74
154
dynamically in header files.
75
155
@@ -103,6 +183,10 @@ Improvements to clang-tidy
103
183
Now also checks if any calls to ``pthread_* `` functions expect negative return
104
184
values.
105
185
186
+ - New :doc: `bugprone-infinite-loop <clang-tidy/checks/bugprone-infinite-loop >`
187
+ check to detect obvious infinite loops (loops where the condition variable is
188
+ not changed at all).
189
+
106
190
Improvements to include-fixer
107
191
-----------------------------
108
192
0 commit comments