Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions change_notes/2025-02-13-fix-issue-718.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `A2-7-3` - `UndocumentedUserDefinedType.ql`
- Fixes #718. Include trailing characters after group comment endings with ///@{ ... ///@}.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private predicate isInFunctionScope(Declaration d) {
private string doxygenCommentGroupStrings(boolean opening) {
opening = true and result = ["///@{", "/**@{*/"]
or
opening = false and result = ["///@}", "/**@}*/"]
opening = false and result = ["///@}%", "/**@}*/"]
}

pragma[inline]
Expand Down
10 changes: 10 additions & 0 deletions cpp/autosar/test/rules/A2-7-3/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,14 @@ class ClassG2 { // COMPLIANT
class ClassG3 { // COMPLIANT
public:
friend int foo3() { return 1; } // NON_COMPLIANT
};

/// @brief A Doxygen comment.
class ClassH { // COMPLIANT
public:
/// @brief Group with comment at the end.
///@{
void m(); // COMPLIANT
void n(); // COMPLIANT
///@} End of group
};
Loading