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_groups` that may be absent, or have a group name associated with a string target or list of string targets:
111
111
# target_groups = {
112
112
# "host": "//:host_target",
@@ -141,7 +141,7 @@ def refresh_compile_commands(
141
141
142
142
target_group_targets_list= []
143
143
serialized_target_groups= {}
144
-
144
+
145
145
iftarget_groups:
146
146
# Convert the targets specified in `target_groups` 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 groups. 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