Skip to content

Commit a10476f

Browse files
committed
Annotate compliant case
1 parent e54b4c5 commit a10476f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpp/autosar/test/rules/A8-4-8/test.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ constexpr A &operator|=(
4646
}
4747

4848
enum class byte : unsigned char {};
49-
constexpr byte &operator|(const byte &lhs, const byte &rhs) noexcept {
49+
constexpr byte &
50+
operator|(const byte &lhs,
51+
const byte &rhs) noexcept { // COMPLIANT - parameters are const
52+
// qualified references
5053
return lhs | rhs;
5154
}
5255
constexpr byte &operator|=(

0 commit comments

Comments
 (0)