* Lint script with CLang format
* Use `-i` for `clang-format` and add more logging for lint scripts
* Apply LLVM CLang formatting
* Fixed comment
* Update ChangeLog
* Fixed bad return code logic
* Improve output for linters
* Fixed re-used var in clang lint
* Fixed include order for tests and use `#if 0` instead of commenting out code
* Use full Clang format dump
* Dump Ubuntu Clang format
* Dump Clang format from Debian
* Dumped from: clang-format version 18.1.8
* Revert "Dumped from: clang-format version 18.1.8"
This reverts commit b9bbda2995bb0b4b65baf14afebb0361ec64e644.
* Remove BasedOnStyle
* Restore base Clang format file
* Use clang-format from pip
* Apply Clang format 18 style
* Add clang_format deps
* Fixed include order issues and *some* accidental includes
* Add rebuild launch target for daemon
* Change debug source path to be clickable in VS Code
* Shorten launch targets for readability in UI
* Update CL
Without the change the build on upcoming `gcc-13` ails as:
src/lib/base/Log.cpp: In member function 'void Log::print(const char*, int, const char*, ...)':
src/lib/base/Log.cpp:128:23:
error: 'SIZE_MAX' was not declared in this scope
128 | if ((strnlen(fmt, SIZE_MAX) > 2) && (fmt[0] == '%' && fmt[1] == 'z')) {
| ^~~~~~~~
src/lib/base/Log.cpp:30:1:
note: 'SIZE_MAX' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
29 | #include <ctime>
+++ |+#include <cstdint>
30 |
gcc-13 cleaned it's header dependencies and that exposes these failures.
- reordered includes to prevent accidental dependencies.
- moved arch specific files into their own folder (easier to include with cmake).
- renamed non-class files to reflect new code style (lower case with underscores).
- using full relative paths for includes (easier for understanding dependencies).
- using #pragma once instead of classic-style header guards.