Skip to content

Commit 31eea6c

Browse files
committed
Replaces expensive getIdentityString() call
1 parent c90966a commit 31eea6c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- `A13-2-2` - `BinaryOperatorAndBitwiseOperatorReturnAPrvalue.ql`:
2+
- Replaced the usage of getIdentityString() with toString() to avoid expensive computation to display the Operator names which were causing crashes on production code.

cpp/autosar/src/rules/A13-2-2/BinaryOperatorAndBitwiseOperatorReturnAPrvalue.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ where
3131
o.getType() instanceof ReferenceType
3232
)
3333
select o,
34-
"User-defined bitwise or arithmetic operator " + getIdentityString(o) +
34+
"User-defined bitwise or arithmetic operator " + o.toString() +
3535
" does not return a prvalue."

0 commit comments

Comments
 (0)