Skip to content

Commit

Permalink
fixing format check for windows OS
Browse files Browse the repository at this point in the history
  • Loading branch information
inbangsa committed Sep 26, 2022
1 parent a8674ac commit 7ad1a2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
include_folders = ["modules", "examples"]
exclude_folders = ["modules/device/include/ifm3d/contrib"]

#making path accorinding to OS
exclude_folders = list(map(lambda rel_path : os.path.normcase(os.path.join("", os.path.relpath(rel_path))), exclude_folders))

def format_file(clangf_exe, file, dry_run=False):
args = [clangf_exe, "-i", "-style=file"]
Expand Down

0 comments on commit 7ad1a2b

Please sign in to comment.