Skip to content

Commit 1397df9

Browse files
authored
Update bool-bitwise-operation.rst
1 parent b9be35d commit 1397df9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

clang-tools-extra/docs/clang-tidy/checks/misc/bool-bitwise-operation.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ of using ``|=`` operator:
3333
// error handling
3434
}
3535

36+
Limitations
37+
-------
38+
39+
* Templates aren't matched.
40+
41+
.. code-block:: c++
42+
43+
template <typename X>
44+
void f(X a, X b) {
45+
a | b;
46+
}
47+
48+
// even 'f(true, false)' (or similar) won't trigger the warning.
49+
3650
Options
3751
-------
3852

0 commit comments

Comments
 (0)