Formatted code (#1007)

* Updated style

* Updated files

* fixed new line

* Updated spacing

* File fix WIP

* Updated to clang 13

* updated comment style

* Removed old comment code
This commit is contained in:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -29,18 +29,18 @@
* undefined reference to `__dso_handle'.
* Comes up when using random C++ features, e.g. lambdas or std::function?
*/
void *__dso_handle;
void* __dso_handle;
/* prevents the exception handling name demangling code getting pulled in */
namespace __gnu_cxx {
void __verbose_terminate_handler() {
}
void __verbose_terminate_handler() {
}
} // namespace __gnu_cxx
/* NOTE: Hack to address bloat when using C++ class virtual destructors.
*/
extern "C" __attribute__((weak)) void __cxa_pure_virtual(void) {
chSysHalt();
chSysHalt();
}
#endif
@ -49,6 +49,8 @@ extern "C" __attribute__((weak)) void __cxa_pure_virtual(void) {
* _exit().
*/
extern "C" void abort() {
/* while() loop to avoid noreturn-is-returning warning. */
while(1) { chSysHalt(); }
/* while() loop to avoid noreturn-is-returning warning. */
while (1) {
chSysHalt();
}
}