-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathUndefined.qll
More file actions
146 lines (136 loc) · 5.26 KB
/
Undefined.qll
File metadata and controls
146 lines (136 loc) · 5.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
//** THIS FILE IS AUTOGENERATED, DO NOT MODIFY DIRECTLY. **/
import cpp
import RuleMetadata
import codingstandards.cpp.exclusions.RuleMetadata
newtype UndefinedQuery =
TUndefinedBehaviorQuery() or
TCriticalUnspecifiedBehaviorQuery() or
TUndefinedBehaviorAuditQuery() or
TCriticalUnspecifiedBehaviorAuditQuery() or
TPossibleDataRaceBetweenThreadsQuery() or
TNullPointerToMemberAccessUndefinedBehaviorQuery() or
TUninitializedStaticPointerToMemberUndefinedBehaviorQuery() or
TNonExistentMemberAccessUndefinedBehaviorQuery()
predicate isUndefinedQueryMetadata(Query query, string queryId, string ruleId, string category) {
query =
// `Query` instance for the `undefinedBehavior` query
UndefinedPackage::undefinedBehaviorQuery() and
queryId =
// `@id` for the `undefinedBehavior` query
"cpp/misra/undefined-behavior" and
ruleId = "RULE-4-1-3" and
category = "required"
or
query =
// `Query` instance for the `criticalUnspecifiedBehavior` query
UndefinedPackage::criticalUnspecifiedBehaviorQuery() and
queryId =
// `@id` for the `criticalUnspecifiedBehavior` query
"cpp/misra/critical-unspecified-behavior" and
ruleId = "RULE-4-1-3" and
category = "required"
or
query =
// `Query` instance for the `undefinedBehaviorAudit` query
UndefinedPackage::undefinedBehaviorAuditQuery() and
queryId =
// `@id` for the `undefinedBehaviorAudit` query
"cpp/misra/undefined-behavior-audit" and
ruleId = "RULE-4-1-3" and
category = "required"
or
query =
// `Query` instance for the `criticalUnspecifiedBehaviorAudit` query
UndefinedPackage::criticalUnspecifiedBehaviorAuditQuery() and
queryId =
// `@id` for the `criticalUnspecifiedBehaviorAudit` query
"cpp/misra/critical-unspecified-behavior-audit" and
ruleId = "RULE-4-1-3" and
category = "required"
or
query =
// `Query` instance for the `possibleDataRaceBetweenThreads` query
UndefinedPackage::possibleDataRaceBetweenThreadsQuery() and
queryId =
// `@id` for the `possibleDataRaceBetweenThreads` query
"cpp/misra/possible-data-race-between-threads" and
ruleId = "RULE-4-1-3" and
category = "required"
or
query =
// `Query` instance for the `nullPointerToMemberAccessUndefinedBehavior` query
UndefinedPackage::nullPointerToMemberAccessUndefinedBehaviorQuery() and
queryId =
// `@id` for the `nullPointerToMemberAccessUndefinedBehavior` query
"cpp/misra/null-pointer-to-member-access-undefined-behavior" and
ruleId = "RULE-4-1-3" and
category = "required"
or
query =
// `Query` instance for the `uninitializedStaticPointerToMemberUndefinedBehavior` query
UndefinedPackage::uninitializedStaticPointerToMemberUndefinedBehaviorQuery() and
queryId =
// `@id` for the `uninitializedStaticPointerToMemberUndefinedBehavior` query
"cpp/misra/uninitialized-static-pointer-to-member-undefined-behavior" and
ruleId = "RULE-4-1-3" and
category = "required"
or
query =
// `Query` instance for the `nonExistentMemberAccessUndefinedBehavior` query
UndefinedPackage::nonExistentMemberAccessUndefinedBehaviorQuery() and
queryId =
// `@id` for the `nonExistentMemberAccessUndefinedBehavior` query
"cpp/misra/non-existent-member-access-undefined-behavior" and
ruleId = "RULE-4-1-3" and
category = "required"
}
module UndefinedPackage {
Query undefinedBehaviorQuery() {
//autogenerate `Query` type
result =
// `Query` type for `undefinedBehavior` query
TQueryCPP(TUndefinedPackageQuery(TUndefinedBehaviorQuery()))
}
Query criticalUnspecifiedBehaviorQuery() {
//autogenerate `Query` type
result =
// `Query` type for `criticalUnspecifiedBehavior` query
TQueryCPP(TUndefinedPackageQuery(TCriticalUnspecifiedBehaviorQuery()))
}
Query undefinedBehaviorAuditQuery() {
//autogenerate `Query` type
result =
// `Query` type for `undefinedBehaviorAudit` query
TQueryCPP(TUndefinedPackageQuery(TUndefinedBehaviorAuditQuery()))
}
Query criticalUnspecifiedBehaviorAuditQuery() {
//autogenerate `Query` type
result =
// `Query` type for `criticalUnspecifiedBehaviorAudit` query
TQueryCPP(TUndefinedPackageQuery(TCriticalUnspecifiedBehaviorAuditQuery()))
}
Query possibleDataRaceBetweenThreadsQuery() {
//autogenerate `Query` type
result =
// `Query` type for `possibleDataRaceBetweenThreads` query
TQueryCPP(TUndefinedPackageQuery(TPossibleDataRaceBetweenThreadsQuery()))
}
Query nullPointerToMemberAccessUndefinedBehaviorQuery() {
//autogenerate `Query` type
result =
// `Query` type for `nullPointerToMemberAccessUndefinedBehavior` query
TQueryCPP(TUndefinedPackageQuery(TNullPointerToMemberAccessUndefinedBehaviorQuery()))
}
Query uninitializedStaticPointerToMemberUndefinedBehaviorQuery() {
//autogenerate `Query` type
result =
// `Query` type for `uninitializedStaticPointerToMemberUndefinedBehavior` query
TQueryCPP(TUndefinedPackageQuery(TUninitializedStaticPointerToMemberUndefinedBehaviorQuery()))
}
Query nonExistentMemberAccessUndefinedBehaviorQuery() {
//autogenerate `Query` type
result =
// `Query` type for `nonExistentMemberAccessUndefinedBehavior` query
TQueryCPP(TUndefinedPackageQuery(TNonExistentMemberAccessUndefinedBehaviorQuery()))
}
}