circuitpython/devices/ble_hci/common-hal/_bleio
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
..
hci_include run code formatting script 2021-03-15 19:27:36 +05:30
Adapter.c Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
Adapter.h run code formatting script 2021-03-15 19:27:36 +05:30
Attribute.c Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
Attribute.h characteristic/cccd r/w; not tested 2020-08-10 19:46:18 -04:00
Characteristic.c Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
Characteristic.h ble_uart_echo_test works 2020-08-13 00:03:39 -04:00
CharacteristicBuffer.c run code formatting script 2021-03-15 19:27:36 +05:30
CharacteristicBuffer.h ble_uart_echo_test works 2020-08-13 00:03:39 -04:00
Connection.c Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
Connection.h run code formatting script 2021-03-15 19:27:36 +05:30
Descriptor.c run code formatting script 2021-03-15 19:27:36 +05:30
Descriptor.h run code formatting script 2021-03-15 19:27:36 +05:30
PacketBuffer.c codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
PacketBuffer.h Port changes to ble_hci code 2021-04-19 15:10:33 -07:00
Service.c run code formatting script 2021-03-15 19:27:36 +05:30
Service.h run code formatting script 2021-03-15 19:27:36 +05:30
UUID.c run code formatting script 2021-03-15 19:27:36 +05:30
UUID.h run code formatting script 2021-03-15 19:27:36 +05:30
__init__.c run code formatting script 2021-03-15 19:27:36 +05:30
__init__.h run code formatting script 2021-03-15 19:27:36 +05:30
att.c Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
att.h run code formatting script 2021-03-15 19:27:36 +05:30
hci.c run code formatting script 2021-03-15 19:27:36 +05:30
hci.h improve HCI packet error handling 2020-08-21 10:17:59 -04:00
hci_debug.c run code formatting script 2021-03-15 19:27:36 +05:30