Skip to content

Commit b254323

Browse files
committed
Annotate test case with appropriate comment
1 parent 2e136c8 commit b254323

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/autosar/test/rules/M9-3-3/test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ template <class T, template <class...> class U> class Stack {
175175
public:
176176
T &Top() {
177177
return this->data.back();
178-
} // Likely NON_COMPLIANT, but cannot be determined until instantiation.
178+
} // COMPLIANT[FALSE_NEGATIVE|TRUE_NEGATIVE] - exception not specified in the
179+
// standard, we opt to not raise an issue because the template can be both
180+
// compliant and non-compliant depending on instantiations.
179181
private:
180182
U<T> data;
181183
};

0 commit comments

Comments
 (0)