From afb499ecce563b051798b93010912d5a1ea29e49 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 24 Nov 2021 09:26:55 -0800 Subject: [PATCH] Update documentation for CompilationContext to be more clear. This better matches the text in defines,local_defines on cc_binary. PiperOrigin-RevId: 412075161 --- .../lib/starlarkbuildapi/cpp/CcCompilationContextApi.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/cpp/CcCompilationContextApi.java b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/cpp/CcCompilationContextApi.java index 05fb1337ea8cbc..9a642b78a1f088 100644 --- a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/cpp/CcCompilationContextApi.java +++ b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/cpp/CcCompilationContextApi.java @@ -38,7 +38,8 @@ public interface CcCompilationContextApi extends Starlark name = "defines", doc = "Returns the set of defines needed to compile this target. Each define is a string." - + " These values are propagated to the target's transitive dependencies.", + + " These values are propagated to the target's transitive dependents, that is, " + + "any rules that depend on this target.", structField = true) Depset getStarlarkDefines(); @@ -46,7 +47,7 @@ public interface CcCompilationContextApi extends Starlark name = "local_defines", doc = "Returns the set of defines needed to compile this target. Each define is a string." - + " These values are not propagated to the target's transitive dependencies.", + + " These values are not propagated to the target's transitive dependents.", structField = true) Depset getStarlarkNonTransitiveDefines();