Add initial .clang-tidy and fixes

This commit is contained in:
Christian Semmler
2024-01-31 02:16:17 -05:00
parent 9e0b19856c
commit 99c16d1392
306 changed files with 2780 additions and 1958 deletions

View File

@@ -75,13 +75,15 @@ unsigned char LegoROI::CallTheHandlerFunction(
)
{
// TODO
if (p_param == NULL)
if (p_param == NULL) {
return FALSE;
}
if (g_someHandlerFunction) {
char buf[32];
if (g_someHandlerFunction(p_param, buf, 32))
if (g_someHandlerFunction(p_param, buf, 32)) {
p_param = buf;
}
}
return ColorAliasLookup(p_param, p_red, p_green, p_blue, p_other);

View File

@@ -19,9 +19,9 @@ class LegoROI : public ViewROI {
public:
LegoROI(Tgl::Renderer* p_renderer, ViewLODList* p_lodList, int p_time);
virtual float IntrinsicImportance() const override; // vtable+0x04
float IntrinsicImportance() const override; // vtable+0x04
// Note: Actually part of parent class (doesn't exist yet)
virtual void UpdateWorldBoundingVolumes() override; // vtable+0x18
void UpdateWorldBoundingVolumes() override; // vtable+0x18
void SetDisplayBB(int p_displayBB);
static void configureLegoROI(int p_roi);