Skip to content

Commit

Permalink
Meaningless target_link_libraries should be valid code
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankSpruce committed Dec 22, 2023
1 parent 9757ede commit f7a2243
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class IsolateConfigurationTypeAndItem(Transformer_InPlace):

def arguments(self, children):
new_children = []
if len(children) < 2:
return Tree("arguments", new_children)

iterator = zip(children, children[1:])
is_one_of_defined_keywords = is_one_of_keywords(self.keywords)
for one_behind, current in iterator:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target_link_libraries(foo)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target_link_libraries(foo)

0 comments on commit f7a2243

Please sign in to comment.