Run clang-format on the entire repo
This patch clang-formats the entire repo. Third-party code is
excluded.
I needed to fix up the .clang-format file so that all the header
includes are ordered properly. I could have sworn that it used to work
without the extra modification, but I guess not.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I64bb9f2c795401393f9dfe2fefc4f04cb36b52f6
diff --git a/frc971/wpilib/ahal/ErrorBase.h b/frc971/wpilib/ahal/ErrorBase.h
index f0dfe3e..ef1dd5d 100644
--- a/frc971/wpilib/ahal/ErrorBase.h
+++ b/frc971/wpilib/ahal/ErrorBase.h
@@ -12,42 +12,42 @@
#include <wpi/mutex.h>
// Forward declared manually to avoid needing to pull in entire HAL header.
-extern "C" const char* HAL_GetErrorMessage(int32_t code);
+extern "C" const char *HAL_GetErrorMessage(int32_t code);
#define wpi_setErrnoErrorWithContext(context) \
this->SetErrnoError((context), __FILE__, __FUNCTION__, __LINE__)
#define wpi_setErrnoError() wpi_setErrnoErrorWithContext("")
-#define wpi_setImaqErrorWithContext(code, context) \
- do { \
+#define wpi_setImaqErrorWithContext(code, context) \
+ do { \
} while (0)
-#define wpi_setErrorWithContext(code, context) \
- do { \
+#define wpi_setErrorWithContext(code, context) \
+ do { \
} while (0)
-#define wpi_setErrorWithContextRange(code, min, max, req, context) \
- do { \
+#define wpi_setErrorWithContextRange(code, min, max, req, context) \
+ do { \
} while (0)
-#define wpi_setHALError(code) \
- do { \
+#define wpi_setHALError(code) \
+ do { \
} while (0)
-#define wpi_setHALErrorWithRange(code, min, max, req) \
- do { \
+#define wpi_setHALErrorWithRange(code, min, max, req) \
+ do { \
} while (0)
#define wpi_setError(code) wpi_setErrorWithContext(code, "")
-#define wpi_setStaticErrorWithContext(object, code, context) \
- do { \
+#define wpi_setStaticErrorWithContext(object, code, context) \
+ do { \
} while (0)
#define wpi_setStaticError(object, code) \
wpi_setStaticErrorWithContext(object, code, "")
-#define wpi_setGlobalErrorWithContext(code, context) \
- do { \
+#define wpi_setGlobalErrorWithContext(code, context) \
+ do { \
} while (0)
-#define wpi_setGlobalHALError(code) \
- do { \
+#define wpi_setGlobalHALError(code) \
+ do { \
} while (0)
#define wpi_setGlobalError(code) wpi_setGlobalErrorWithContext(code, "")