Skip to content

Commit 60076cb

Browse files
authored
Merge pull request #532 from geoffw0/query-tags-3
CPP: Query Tags 3 (JPL_C queries)
2 parents ca72c8e + 1232694 commit 60076cb

File tree

49 files changed

+216
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+216
-24
lines changed

cpp/ql/src/JPL_C/LOC-2/Rule 03/ExitNonterminatingLoop.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/exit-nonterminating-loop
66
* @problem.severity warning
7+
* @tags correctness
8+
* external/jpl
79
*/
810

911
import cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @kind problem
66
* @id cpp/jpl-c/loop-bounds
77
* @problem.severity warning
8+
* @tags correctness
9+
* external/jpl
810
*/
911

1012
import cpp

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

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

913
import cpp

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
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
8+
* external/jpl
79
*/
810

911
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 07/ThreadSafety.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/thread-safety
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
9+
* external/jpl
710
*/
811

912
import cpp

cpp/ql/src/JPL_C/LOC-2/Rule 09/AvoidNestedSemaphores.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/avoid-nested-semaphores
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
9+
* external/jpl
710
*/
811

912
import Semaphores

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
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
8+
* external/jpl
79
*/
810

911
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 09/OutOfOrderLocks.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/out-of-order-locks
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
9+
* external/jpl
710
*/
811

912
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 09/ReleaseLocksWhenAcquired.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/release-locks-when-acquired
66
* @problem.severity warning
7+
* @tags correctness
8+
* concurrency
9+
* external/jpl
710
*/
811

912
import Semaphores

cpp/ql/src/JPL_C/LOC-2/Rule 11/SimpleControlFlowGoto.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/simple-control-flow-goto
66
* @problem.severity warning
7+
* @tags maintainability
8+
* readability
9+
* external/jpl
710
*/
811

912
import cpp

0 commit comments

Comments
 (0)