From e9029d4613d98c17e05236a0058164bb8787f94b Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 1 Apr 2015 17:25:19 +0000 Subject: --instrumentation_filter now works with Objective C. Added "-Tests$" to the default instrumentation_filter, this is the typical pattern for Objective C. All sources are included in ObjcCommon.SOURCE. Sources from targets which match the current instrumentation_filter are included in ObjcCommon.INSTRUMENTED_SOURCE. GCNOs are added to ObjcCommon.GCNO iff the source they originate from is included in from a target which matches the instrumentation_filter. RELNOTES: --instrumentation_filter now works with Objective C coverage. -- MOS_MIGRATED_REVID=90076465 --- .../java/com/google/devtools/build/lib/rules/objc/ObjcProvider.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProvider.java') diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProvider.java b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProvider.java index e559ab4e35..12692ba011 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProvider.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProvider.java @@ -82,6 +82,11 @@ public final class ObjcProvider implements TransitiveInfoProvider { */ public static final Key SOURCE = new Key<>(STABLE_ORDER); + /** + * Contains all coverage instrumented source files. + */ + public static final Key INSTRUMENTED_SOURCE = new Key<>(STABLE_ORDER); + /** * Contains all .gcno files one for every source file if in coverage mode. * It contains information to reconstruct the basic block graphs and assign source line numbers -- cgit v1.2.3