Skip to content

Commit

Permalink
Merge pull request #17823 from github/hmakholm/pr/graph-equivalence-test
Browse files Browse the repository at this point in the history
Supplement 'query-type: graph' with actual query metadata
  • Loading branch information
hmakholm authored Oct 22, 2024
2 parents 16fe7a2 + 3d8d340 commit 665354e
Show file tree
Hide file tree
Showing 19 changed files with 114 additions and 19 deletions.
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/basic_blocks/bb_cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/basic_blocks/cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/c++_exceptions/graphable.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/constexpr_if/cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/destructors/cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/lambdas/cfg/cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/pointsto/basic/sets.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp
import semmle.code.cpp.pointsto.PointsTo

Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/sub_basic_blocks/cut.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import sbb_test

class CutCall extends SubBasicBlockCutNode {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/sub_basic_blocks/no_cut.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import sbb_test

// Note: no instance of `SubBasicBlockCutNode`
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/virtual_functions/cfg/cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/library-tests/vla/cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/successor-tests/break_labels/cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/successor-tests/conditional_destructors/cfg.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/successor-tests/pruning/graphable.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
7 changes: 6 additions & 1 deletion cpp/ql/test/successor-tests/returnstmt/graphable.ql
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// query-type: graph
/**
* query-type: graph
*
* @kind graph-equivalence-test
*/

import cpp

class DestructorCallEnhanced extends DestructorCall {
Expand Down

0 comments on commit 665354e

Please sign in to comment.