You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: refresh_compile_commands.bzl
+6-6
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ def refresh_compile_commands(
91
91
exclude_headers=None,
92
92
exclude_external_sources=False,
93
93
**kwargs): # For the other common attributes. Tags, compatible_with, etc. https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes.
94
-
94
+
95
95
# Given `targets` that may be absent, or be a single string target:
96
96
# targets = "//:some_target"
97
97
#
@@ -106,7 +106,7 @@ def refresh_compile_commands(
106
106
# "//:some_target": "--flag ...",
107
107
# "//:another_target": "--arg ..."
108
108
# }
109
-
#
109
+
#
110
110
# And given `target_collections` that may be absent, or have a collection name associated with a list of string targets:
111
111
# target_collections = {
112
112
# "host": [
@@ -144,7 +144,7 @@ def refresh_compile_commands(
144
144
145
145
target_collection_targets_list= []
146
146
serialized_target_collections= {}
147
-
147
+
148
148
iftarget_collections:
149
149
# Convert the targets specified in `target_collections` into the format we'll use with `targets`, so we can combine them into one list of targets to generate compile commands for.
# Targets may appear in multiple collections. We don't want duplicates in the final list, but Starlark doesn't have Python's set class. So we de-duplicate manually.
0 commit comments