diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-09 16:49:25 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-09 16:58:00 +0500 |
| commit | 21a16d5f91429cf2a61dcdae45c5448c096123d7 (patch) | |
| tree | 8052fd16287a06c4d0fd564cb62cf44de0b60d76 /project/format.py | |
| parent | ugprade to StrEnum (diff) | |
| download | cmake-common-21a16d5f91429cf2a61dcdae45c5448c096123d7.tar.gz cmake-common-21a16d5f91429cf2a61dcdae45c5448c096123d7.zip | |
use the match statement
Diffstat (limited to 'project/format.py')
| -rw-r--r-- | project/format.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/project/format.py b/project/format.py index f98f726..fc5ae0e 100644 --- a/project/format.py +++ b/project/format.py @@ -101,9 +101,18 @@ def filter_files(paths, exclude): return (path for path in paths if not excluded(path, exclude)) -CPP_FILE_EXTENSIONS = set( - (".c", ".h", ".cc", ".hh", ".cpp", ".hpp", ".cxx", ".hxx", ".cp", ".c++") -) +CPP_FILE_EXTENSIONS = { + ".c", + ".h", + ".cc", + ".hh", + ".cpp", + ".hpp", + ".cxx", + ".hxx", + ".cp", + ".c++", +} def list_cpp_files(): |
