• Home
  • Raw
  • Download

Lines Matching refs:checks

260         String[] checks = mChecker.getChecks(cfunc.getName());  in isNullAllowed()  local
262 if (checks != null) { in isNullAllowed()
263 while (index < checks.length) { in isNullAllowed()
264 if (checks[index].equals("nullAllowed") && in isNullAllowed()
265 checks[index + 1].equals(cname)) { in isNullAllowed()
268 index = skipOneCheck(checks, index); in isNullAllowed()
276 String[] checks = mChecker.getChecks(cfunc.getName()); in hasCheckTest() local
278 if (checks != null) { in hasCheckTest()
279 while (index < checks.length) { in hasCheckTest()
280 if (checks[index].startsWith("check")) { in hasCheckTest()
283 index = skipOneCheck(checks, index); in hasCheckTest()
291 String[] checks = mChecker.getChecks(cfunc.getName()); in hasCheckTest() local
293 if (checks != null) { in hasCheckTest()
294 while (index < checks.length) { in hasCheckTest()
295 if (checks[index].startsWith("check") && in hasCheckTest()
296 cname != null && cname.equals(checks[index + 1])) { in hasCheckTest()
299 index = skipOneCheck(checks, index); in hasCheckTest()
307 String[] checks = mChecker.getChecks(cfunc.getName()); in hasIfTest() local
309 if (checks != null) { in hasIfTest()
310 while (index < checks.length) { in hasIfTest()
311 if (checks[index].startsWith("ifcheck")) { in hasIfTest()
314 index = skipOneCheck(checks, index); in hasIfTest()
321 int skipOneCheck(String[] checks, int index) { in skipOneCheck() argument
322 if (checks[index].equals("return")) { in skipOneCheck()
324 } else if (checks[index].startsWith("check")) { in skipOneCheck()
326 } else if (checks[index].startsWith("sentinel")) { in skipOneCheck()
328 } else if (checks[index].equals("ifcheck")) { in skipOneCheck()
330 } else if (checks[index].equals("unsupported")) { in skipOneCheck()
332 } else if (checks[index].equals("requires")) { in skipOneCheck()
334 } else if (checks[index].equals("nullAllowed")) { in skipOneCheck()
338 checks[index] + "\""); in skipOneCheck()
356 String[] checks = mChecker.getChecks(cfunc.getName()); in getErrorReturnValue() local
359 if (checks != null) { in getErrorReturnValue()
360 while (index < checks.length) { in getErrorReturnValue()
361 if (checks[index].equals("return")) { in getErrorReturnValue()
362 return checks[index + 1]; in getErrorReturnValue()
364 index = skipOneCheck(checks, index); in getErrorReturnValue()
373 String[] checks = mChecker.getChecks(cfunc.getName()); in isUnsupportedFunc() local
375 if (checks != null) { in isUnsupportedFunc()
376 while (index < checks.length) { in isUnsupportedFunc()
377 if (checks[index].equals("unsupported")) { in isUnsupportedFunc()
380 index = skipOneCheck(checks, index); in isUnsupportedFunc()
388 String[] checks = mChecker.getChecks(cfunc.getName()); in isRequiresFunc() local
390 if (checks != null) { in isRequiresFunc()
391 while (index < checks.length) { in isRequiresFunc()
392 if (checks[index].equals("requires")) { in isRequiresFunc()
393 return checks[index+1]; in isRequiresFunc()
395 index = skipOneCheck(checks, index); in isRequiresFunc()
405 String[] checks = mChecker.getChecks(cfunc.getName()); in emitNativeBoundsChecks() local
410 if (checks != null) { in emitNativeBoundsChecks()
411 while (index < checks.length) { in emitNativeBoundsChecks()
412 if (checks[index].startsWith("check")) { in emitNativeBoundsChecks()
418 if (cname != null && !cname.equals(checks[index + 1])) { in emitNativeBoundsChecks()
422 out.println(iii + "if (" + remaining + " < " + checks[index + 2] + ") {"); in emitNativeBoundsChecks()
428 int underscore = checks[index].indexOf('_'); in emitNativeBoundsChecks()
430 String abbr = checks[index].substring(underscore + 1); in emitNativeBoundsChecks()
442 offset) + " < " + checks[index + 2] + in emitNativeBoundsChecks()
451 } else if (checks[index].equals("ifcheck")) { in emitNativeBoundsChecks()
452 String[] matches = checks[index + 4].split(","); in emitNativeBoundsChecks()
456 out.println(iii + "switch (" + checks[index + 3] + ") {"); in emitNativeBoundsChecks()
464 out.println(iii + " _needed = " + checks[index + 2] + ";"); in emitNativeBoundsChecks()
470 index = skipOneCheck(checks, index); in emitNativeBoundsChecks()
483 String[] checks = mChecker.getChecks(cfunc.getName()); in emitSentinelCheck() local
486 if (checks != null) { in emitSentinelCheck()
487 while (index < checks.length) { in emitSentinelCheck()
488 if (checks[index].startsWith("sentinel")) { in emitSentinelCheck()
489 if (cname != null && !cname.equals(checks[index + 1])) { in emitSentinelCheck()
498 "[i] == " + checks[index + 2] + "){"); in emitSentinelCheck()
510 " must contain " + checks[index + 2] + "!\";"); in emitSentinelCheck()
517 index = skipOneCheck(checks, index); in emitSentinelCheck()
525 String[] checks = mChecker.getChecks(cfunc.getName()); in emitStringCheck() local
528 if (checks != null) { in emitStringCheck()
529 while (index < checks.length) { in emitStringCheck()
530 if (checks[index].startsWith("check")) { in emitStringCheck()
531 if (cname != null && !cname.equals(checks[index + 1])) { in emitStringCheck()
536 out.println(iii + "if (" + checks[index + 2] + " > _stringlen) {"); in emitStringCheck()
542 checks[index + 2] + " argument\";"); in emitStringCheck()
548 index = skipOneCheck(checks, index); in emitStringCheck()
556 String[] checks = mChecker.getChecks(cfunc.getName()); in emitLocalVariablesForSentinel() local
559 if (checks != null) { in emitLocalVariablesForSentinel()
560 while (index < checks.length) { in emitLocalVariablesForSentinel()
561 if (checks[index].startsWith("sentinel")) { in emitLocalVariablesForSentinel()
562 String cname = checks[index + 1]; in emitLocalVariablesForSentinel()
568 index = skipOneCheck(checks, index); in emitLocalVariablesForSentinel()