circuitpython/ports/atmel-samd/supervisor
Jeff Epler e95e921ca1 codeformat: Fix filename matching
In #4683, tannewt noticed that uncrustify was not running on some
file in common-hal.

I investigated and found that it was not being run on a bunch of paths.

Rather than make incremental changes, I rewrote list_files to work
bsaed on regular expressions; these regular expressions are created from
the same git-style glob patterns.

I spot-checked some specific filenames after this change, and all looks good:

```
$ python3 tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py  ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup extmod/virtpin.c ports/raspberrypi/background.h ports/raspberrypi/common-hal/pulseio/PulseIn.c
black --fast --line-length=99 -v tests/thread/thread_exit1.py
```
recursiveloop and int_small are excluded, while PulseIn, virtpin,
and background are included.

Testing running from a subdirectory (not _specifically_ supported though):
```
(cd ports && python3 ../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c)
../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup ../extmod/virtpin.c raspberrypi/common-hal/pulseio/PulseIn.
```

As a side-effect, a bunch more files are re-formatted now. :-P
2021-04-30 10:48:08 -05:00
..
internal_flash.c codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
internal_flash.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
internal_flash_root_pointers.h Move atmel-samd to tinyusb and support nRF flash. 2018-11-08 17:25:30 -08:00
port.c codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
qspi_flash.c codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
samd21_cpu.s Mark pointers in cpu registers as in use. 2018-07-03 05:45:50 -07:00
samd51_cpu.s Mark pointers in cpu registers as in use. 2018-07-03 05:45:50 -07:00
same51_cpu.s atmel-samd: add same51, feather_m4_can 2020-09-08 13:06:45 -05:00
same54_cpu.s atmel-samd: Add support for SAM E54 family MCUs 2020-06-23 10:41:48 -05:00
usb.c codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00