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

Commit63b8e77

Browse files
committed
Use regexpFind instead of regexpMatch
Otherwise we need to match the entire receiver.
1 parent45aa850 commit63b8e77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎cpp/autosar/src/codingstandards/cpp/HardwareOrProtocolInterface.qll‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ abstract class HardwareOrProtocolInterfaceClass extends Class { }
55

66
classHardwareOrProtocolInterfaceCommentextendsComment{
77
HardwareOrProtocolInterfaceComment(){
8-
getContents().regexpMatch("(?m)^\\s*(//|\\*)\\s*@HardwareOrProtocolInterface\\s*$")
8+
exists(getContents().regexpFind("(?m)^\\s*(//|\\*)\\s*@HardwareOrProtocolInterface\\s*$", _, _))
99
}
1010
}
1111

‎cpp/common/src/codingstandards/cpp/rules/orderingpredicatemustbestrictlyweak/OrderingPredicateMustBeStrictlyWeak.qll‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Query getQuery() { result instanceof OrderingPredicateMustBeStrictlyWeakSharedQu
1616

1717
classIsStrictlyWeaklyOrderedCommentextendsComment{
1818
IsStrictlyWeaklyOrderedComment(){
19-
getContents().regexpMatch("(?m)^\\s*(//|\\*)\\s*@IsStrictlyWeaklyOrdered\\s*$")
19+
exists(getContents().regexpFind("(?m)^\\s*(//|\\*)\\s*@IsStrictlyWeaklyOrdered\\s*$", _, _))
2020
}
2121
}
2222

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp