Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3575db1

Browse files
committed
Rule 7.0.2: Use getUnconverted.
1 parent668e518 commit3575db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cpp/misra/src/rules/RULE-7-0-2/NoImplicitBoolConversion.ql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ where
9090
// Exception 2: Contextual conversion from class with explicit operator bool is allowed
9191
not(
9292
op.isExplicit()and
93-
isInContextualBoolContext(conversionCall)
93+
isInContextualBoolContext(conversionCall.getUnconverted())
9494
)and
9595
reason=
9696
"Conversion operator call from '"+conversionCall.getQualifier().getType().toString()+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp