Skip to content

Commit 5d7db89

Browse files
Regenerate ql query header
1 parent 46cb4ff commit 5d7db89

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

cpp/misra/src/rules/RULE-28-6-4/PotentiallyErroneousContainerUsage.ql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* @id cpp/misra/potentially-erroneous-container-usage
3+
* @name RULE-28-6-4: The result of std::remove, std::remove_if, std::unique and empty shall be used
4+
* @description The `empty` method may be confused with `clear`, and the family of algorithms
5+
* similar to `std::remove` require the resulting iterator to be used in order to
6+
* properly handle the modifications performed.
7+
* @kind problem
8+
* @precision very-high
9+
* @problem.severity error
10+
* @tags external/misra/id/rule-28-6-4
11+
* scope/single-translation-unit
12+
* correctness
13+
* external/misra/enforcement/decidable
14+
* external/misra/obligation/required
15+
*/
16+
117
import cpp
218
import codingstandards.cpp.misra
319

0 commit comments

Comments
 (0)