mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

Summary: Replace calls to %clang/%clang_cc1 with %clang_analyze_cc1 when invoking static analyzer, and perform runtime substitution to select the appropriate constraint manager, per D28952. Reviewers: xazax.hun, NoQ, zaks.anna, dcoughlin Subscribers: mgorny, rgov, mikhail.ramalho, a.sidorin, cfe-commits Differential Revision: https://reviews.llvm.org/D30373 llvm-svn: 296895
18 lines
438 B
Objective-C
18 lines
438 B
Objective-C
// REQUIRES: asserts
|
|
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-stats -fblocks %s 2>&1 | FileCheck %s
|
|
@interface I
|
|
int f() {
|
|
return 0;
|
|
}
|
|
@end
|
|
|
|
@implementation I
|
|
+ (void *)ff{
|
|
return (void*)0;
|
|
}
|
|
@end
|
|
|
|
// CHECK: ... Statistics Collected ...
|
|
// CHECK: 2 AnalysisConsumer - The # of functions and blocks analyzed (as top level with inlining turned on).
|
|
// CHECK: 100 AnalysisConsumer - The % of reachable basic blocks.
|