@@ -101,6 +101,22 @@ class SALMaybeNull extends SALAnnotation {
101
101
}
102
102
}
103
103
104
+ /**
105
+ * A parameter annotated by one or more SAL annotations.
106
+ */
107
+ class SALParameter extends Parameter {
108
+ /** One of this parameter's annotations. */
109
+ SALAnnotation a ;
110
+
111
+ SALParameter ( ) { annotatesAt ( a , this .getADeclarationEntry ( ) , _, _) }
112
+
113
+ predicate isIn ( ) { a .getMacroName ( ) .toLowerCase ( ) .matches ( "%\\_in%" ) }
114
+
115
+ predicate isOut ( ) { a .getMacroName ( ) .toLowerCase ( ) .matches ( "%\\_out%" ) }
116
+
117
+ predicate isInOut ( ) { a .getMacroName ( ) .toLowerCase ( ) .matches ( "%\\_inout%" ) }
118
+ }
119
+
104
120
///////////////////////////////////////////////////////////////////////////////
105
121
// Implementation details
106
122
/**
@@ -131,22 +147,6 @@ private predicate annotatesAtPosition(SALPosition pos, DeclarationEntry d, File
131
147
)
132
148
}
133
149
134
- /**
135
- * A parameter annotated by one or more SAL annotations.
136
- */
137
- class SALParameter extends Parameter {
138
- /** One of this parameter's annotations. */
139
- SALAnnotation a ;
140
-
141
- SALParameter ( ) { annotatesAt ( a , this .getADeclarationEntry ( ) , _, _) }
142
-
143
- predicate isIn ( ) { a .getMacroName ( ) .toLowerCase ( ) .matches ( "%\\_in%" ) }
144
-
145
- predicate isOut ( ) { a .getMacroName ( ) .toLowerCase ( ) .matches ( "%\\_out%" ) }
146
-
147
- predicate isInOut ( ) { a .getMacroName ( ) .toLowerCase ( ) .matches ( "%\\_inout%" ) }
148
- }
149
-
150
150
/**
151
151
* A SAL element, that is, a SAL annotation or a declaration entry
152
152
* that may have SAL annotations.
0 commit comments