mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
[upstream_util, wpiutil] Refactor python scripts (#4614)
Co-authored-by: Sourcery AI <> Co-authored-by: Vasista Vovveti <vasistavovveti@gmail.com> Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
This commit is contained in:
@@ -73,12 +73,8 @@ def eigen_inclusions(dp, f):
|
||||
]
|
||||
modules_rgx = r"|".join("/" + m for m in modules)
|
||||
|
||||
# "Std" matches StdDeque, StdList, and StdVector headers
|
||||
if re.search(modules_rgx, abspath) or "Std" in f:
|
||||
return True
|
||||
else:
|
||||
# Exclude all other modules
|
||||
return False
|
||||
# "Std" matches StdDeque, StdList, and StdVector headers. Other modules are excluded.
|
||||
return bool(re.search(modules_rgx, abspath) or "Std" in f)
|
||||
|
||||
|
||||
def unsupported_inclusions(dp, f):
|
||||
|
||||
Reference in New Issue
Block a user