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

Commitef3104a

Browse files
committed
Fix#718.
Use % in string::matches to accept any sequence of characters afterthe group comment ending ///@}.
1 parenta2ffd4c commitef3104a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-`A2-7-3` -`UndocumentedUserDefinedType.ql`
2+
- Fixes#718. Include trailing characters after group comment endings with ///@{ ... ///@}.

‎cpp/autosar/src/rules/A2-7-3/UndocumentedUserDefinedType.ql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private predicate isInFunctionScope(Declaration d) {
2828
privatestringdoxygenCommentGroupStrings(booleanopening){
2929
opening=trueandresult=["///@{","/**@{*/"]
3030
or
31-
opening=falseandresult=["///@}","/**@}*/"]
31+
opening=falseandresult=["///@}%","/**@}*/"]
3232
}
3333

3434
pragma[inline]

‎cpp/autosar/test/rules/A2-7-3/test.cpp‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,14 @@ class ClassG2 { // COMPLIANT
225225
classClassG3 {// COMPLIANT
226226
public:
227227
friendintfoo3() {return1; }// NON_COMPLIANT
228+
};
229+
230+
/// @brief A Doxygen comment.
231+
classClassH {// COMPLIANT
232+
public:
233+
/// @brief Group with comment at the end.
234+
///@{
235+
voidm();// COMPLIANT
236+
voidn();// COMPLIANT
237+
///@} End of group
228238
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp