summaryrefslogtreecommitdiff
path: root/CC
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-25 18:33:13 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-25 18:33:13 +0200
commit64779b8b17341a5497ee21f3256e71cab821bf18 (patch)
treebaa04621481620ac53cae374de67973c4d7b9235 /CC
parent8673c845f507e1916720763433ffee44f64482be (diff)
downloadrules-cc-64779b8b17341a5497ee21f3256e71cab821bf18.tar.gz
lint information for direct dependencies: honor components
... by honoring "modified-transitions" when determining the headers of the direct dependencies.
Diffstat (limited to 'CC')
-rw-r--r--CC/EXPRESSIONS31
1 files changed, 21 insertions, 10 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS
index 37d6d62..fe6f9cb 100644
--- a/CC/EXPRESSIONS
+++ b/CC/EXPRESSIONS
@@ -1151,17 +1151,28 @@
, { "type": "to_subdir"
, "subdir": "include"
, "$1":
- { "type": "let*"
- , "bindings":
- [["transition", {"type": "var", "name": "deps-transition"}]]
- , "body":
- { "type": "map_union"
+ { "type": "map_union"
+ , "$1":
+ { "type": "++"
, "$1":
- { "type": "++"
- , "$1":
- { "type": "foreach"
- , "var": "fieldname"
- , "range": {"type": "var", "name": "deps-fieldnames"}
+ { "type": "foreach"
+ , "var": "fieldname"
+ , "range": {"type": "var", "name": "deps-fieldnames"}
+ , "body":
+ { "type": "let*"
+ , "bindings":
+ [ [ "transition"
+ , { "type": "lookup"
+ , "map":
+ { "type": "var"
+ , "name": "modified-transitions"
+ , "default": {"type": "empty_map"}
+ }
+ , "key": {"type": "var", "name": "fieldname"}
+ , "default": {"type": "var", "name": "deps-transition"}
+ }
+ ]
+ ]
, "body":
{"type": "CALL_EXPRESSION", "name": "runfiles_list"}
}