Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9cc39ae

Browse files
committed
CPP: Tag the JPL_C LOC-2 queries.
1 parent a47db56 commit 9cc39ae

12 files changed

Lines changed: 25 additions & 3 deletions

cpp/ql/src/JPL_C/LOC-2/Rule 03/ExitNonterminatingLoop.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @kind problem
55
* @id cpp/jpl-c/exit-nonterminating-loop
66
* @problem.severity warning
7+
* @tags correctness
78
*/
89

910
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 03/LoopBounds.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @kind problem
66
* @id cpp/jpl-c/loop-bounds
77
* @problem.severity warning
8+
* @tags correctness
89
*/
910

1011
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 04/Recursion.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* @kind problem
55
* @id cpp/jpl-c/recursion
66
* @problem.severity warning
7+
* @tags maintainability
8+
* readability
9+
* testability
710
*/
811

912
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 05/HeapMemory.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* @description Dynamic memory allocation (using malloc() or calloc()) should be confined to the initialization routines of a program.
44
* @kind problem
55
* @id cpp/jpl-c/heap-memory
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags resources
78
*/
89

910
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 07/ThreadSafety.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @kind problem
55
* @id cpp/jpl-c/thread-safety
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 09/AvoidNestedSemaphores.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @kind problem
55
* @id cpp/jpl-c/avoid-nested-semaphores
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
79
*/
810

911
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 09/AvoidSemaphores.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* @description The use of semaphores or locks to access shared data should be avoided.
44
* @kind problem
55
* @id cpp/jpl-c/avoid-semaphores
6-
* @problem.severity warning
6+
* @problem.severity recommendation
7+
* @tags concurrency
78
*/
89

910
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 09/OutOfOrderLocks.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @kind problem
55
* @id cpp/jpl-c/out-of-order-locks
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
79
*/
810

911
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 09/ReleaseLocksWhenAcquired.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @kind problem
55
* @id cpp/jpl-c/release-locks-when-acquired
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
79
*/
810

911
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 11/SimpleControlFlowGoto.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @kind problem
55
* @id cpp/jpl-c/simple-control-flow-goto
66
* @problem.severity warning
7+
* @tags maintainability
8+
* readability
79
*/
810

911
import cpp

0 commit comments

Comments
 (0)