@@ -130,8 +130,8 @@ module CppMetrics {
130
130
override int getValue ( ) { result = count ( Call c ) }
131
131
}
132
132
133
- class SucceededCalls extends SuccessMetric {
134
- SucceededCalls ( ) { this = "calls with a target" }
133
+ class CallsWithExplicitTarget extends SuccessMetric {
134
+ CallsWithExplicitTarget ( ) { this = "calls with an explicit target" }
135
135
136
136
override int getValue ( ) {
137
137
result = count ( Call c | not c .getTarget ( ) .getADeclarationEntry ( ) .isImplicit ( ) )
@@ -221,32 +221,32 @@ module CppMetrics {
221
221
}
222
222
223
223
class SucceededIncludeCount extends Metric {
224
- string include_text ;
224
+ string includeText ;
225
225
226
226
SucceededIncludeCount ( ) {
227
227
exists ( Include i |
228
- i .getIncludeText ( ) = include_text and
228
+ i .getIncludeText ( ) = includeText and
229
229
exists ( i .getFile ( ) .getRelativePath ( ) ) // Only report includes from the repo
230
230
) and
231
- this = "Successfully included " + include_text
231
+ this = "Successfully included " + includeText
232
232
}
233
233
234
- int getValue ( ) { result = count ( Include i | i .getIncludeText ( ) = include_text ) }
234
+ int getValue ( ) { result = count ( Include i | i .getIncludeText ( ) = includeText ) }
235
235
236
- string getIncludeText ( ) { result = include_text }
236
+ string getIncludeText ( ) { result = includeText }
237
237
}
238
238
239
239
class MissingIncludeCount extends Metric {
240
- string include_text ;
240
+ string includeText ;
241
241
242
242
MissingIncludeCount ( ) {
243
- exists ( CannotOpenFileError e | e .getIncludedFile ( ) = include_text ) and
244
- this = "Failed to include '" + include_text + "'"
243
+ exists ( CannotOpenFileError e | e .getIncludedFile ( ) = includeText ) and
244
+ this = "Failed to include '" + includeText + "'"
245
245
}
246
246
247
- int getValue ( ) { result = count ( CannotOpenFileError e | e .getIncludedFile ( ) = include_text ) }
247
+ int getValue ( ) { result = count ( CannotOpenFileError e | e .getIncludedFile ( ) = includeText ) }
248
248
249
- string getIncludeText ( ) { result = include_text }
249
+ string getIncludeText ( ) { result = includeText }
250
250
}
251
251
252
252
class CompilerErrors extends ExtractionMetric {
0 commit comments