@@ -10,46 +10,51 @@ newtype Pointers3Query =
10
10
TDoNotPassAlisedPointerToRestrictQualifiedParameterQuery ( ) or
11
11
TRestrictPointerReferencesOverlappingObjectQuery ( )
12
12
13
- predicate isPointers3QueryMetadata ( Query query , string queryId , string ruleId ) {
13
+ predicate isPointers3QueryMetadata ( Query query , string queryId , string ruleId , string category ) {
14
14
query =
15
15
// `Query` instance for the `doNotAccessVolatileObjectWithNonVolatileReference` query
16
16
Pointers3Package:: doNotAccessVolatileObjectWithNonVolatileReferenceQuery ( ) and
17
17
queryId =
18
18
// `@id` for the `doNotAccessVolatileObjectWithNonVolatileReference` query
19
19
"c/cert/do-not-access-volatile-object-with-non-volatile-reference" and
20
- ruleId = "EXP32-C"
20
+ ruleId = "EXP32-C" and
21
+ category = "rule"
21
22
or
22
23
query =
23
24
// `Query` instance for the `doNotCastPointerToMoreStrictlyAlignedPointerType` query
24
25
Pointers3Package:: doNotCastPointerToMoreStrictlyAlignedPointerTypeQuery ( ) and
25
26
queryId =
26
27
// `@id` for the `doNotCastPointerToMoreStrictlyAlignedPointerType` query
27
28
"c/cert/do-not-cast-pointer-to-more-strictly-aligned-pointer-type" and
28
- ruleId = "EXP36-C"
29
+ ruleId = "EXP36-C" and
30
+ category = "rule"
29
31
or
30
32
query =
31
33
// `Query` instance for the `doNotAccessVariableViaPointerOfIncompatibleType` query
32
34
Pointers3Package:: doNotAccessVariableViaPointerOfIncompatibleTypeQuery ( ) and
33
35
queryId =
34
36
// `@id` for the `doNotAccessVariableViaPointerOfIncompatibleType` query
35
37
"c/cert/do-not-access-variable-via-pointer-of-incompatible-type" and
36
- ruleId = "EXP39-C"
38
+ ruleId = "EXP39-C" and
39
+ category = "rule"
37
40
or
38
41
query =
39
42
// `Query` instance for the `doNotPassAlisedPointerToRestrictQualifiedParameter` query
40
43
Pointers3Package:: doNotPassAlisedPointerToRestrictQualifiedParameterQuery ( ) and
41
44
queryId =
42
45
// `@id` for the `doNotPassAlisedPointerToRestrictQualifiedParameter` query
43
46
"c/cert/do-not-pass-alised-pointer-to-restrict-qualified-parameter" and
44
- ruleId = "EXP43-C"
47
+ ruleId = "EXP43-C" and
48
+ category = "rule"
45
49
or
46
50
query =
47
51
// `Query` instance for the `restrictPointerReferencesOverlappingObject` query
48
52
Pointers3Package:: restrictPointerReferencesOverlappingObjectQuery ( ) and
49
53
queryId =
50
54
// `@id` for the `restrictPointerReferencesOverlappingObject` query
51
55
"c/cert/restrict-pointer-references-overlapping-object" and
52
- ruleId = "EXP43-C"
56
+ ruleId = "EXP43-C" and
57
+ category = "rule"
53
58
}
54
59
55
60
module Pointers3Package {
0 commit comments