1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Clang tidy Part 1: Ui Project Function Names (#15956)

* Add NOLINT around STL using classes and vendor functions

* Apply clang-tidy to ui project function names

* Undo scripting clang-format

* Upper case OpenRCT2 and RCT2
This commit is contained in:
Duncan
2021-11-23 13:18:07 +00:00
committed by GitHub
parent fcf587dfa4
commit bb2c7dbaca
84 changed files with 3939 additions and 3959 deletions

View File

@@ -45,19 +45,19 @@ static rct_widget window_debug_paint_widgets[] = {
WIDGETS_END,
};
static void window_debug_paint_mouseup(rct_window * w, rct_widgetindex widgetIndex);
static void window_debug_paint_invalidate(rct_window * w);
static void window_debug_paint_paint(rct_window * w, rct_drawpixelinfo * dpi);
static void WindowDebugPaintMouseup(rct_window * w, rct_widgetindex widgetIndex);
static void WindowDebugPaintInvalidate(rct_window * w);
static void WindowDebugPaintPaint(rct_window * w, rct_drawpixelinfo * dpi);
static rct_window_event_list window_debug_paint_events([](auto& events)
{
events.mouse_up = &window_debug_paint_mouseup;
events.invalidate = &window_debug_paint_invalidate;
events.paint = &window_debug_paint_paint;
events.mouse_up = &WindowDebugPaintMouseup;
events.invalidate = &WindowDebugPaintInvalidate;
events.paint = &WindowDebugPaintPaint;
});
// clang-format on
rct_window* window_debug_paint_open()
rct_window* WindowDebugPaintOpen()
{
rct_window* window;
@@ -84,7 +84,7 @@ rct_window* window_debug_paint_open()
return window;
}
static void window_debug_paint_mouseup([[maybe_unused]] rct_window* w, rct_widgetindex widgetIndex)
static void WindowDebugPaintMouseup([[maybe_unused]] rct_window* w, rct_widgetindex widgetIndex)
{
switch (widgetIndex)
{
@@ -115,7 +115,7 @@ static void window_debug_paint_mouseup([[maybe_unused]] rct_window* w, rct_widge
}
}
static void window_debug_paint_invalidate(rct_window* w)
static void WindowDebugPaintInvalidate(rct_window* w)
{
const auto& ls = OpenRCT2::GetContext()->GetLocalisationService();
const auto currentLanguage = ls.GetCurrentLanguage();
@@ -158,7 +158,7 @@ static void window_debug_paint_invalidate(rct_window* w)
WidgetSetCheckboxValue(w, WIDX_TOGGLE_SHOW_DIRTY_VISUALS, gShowDirtyVisuals);
}
static void window_debug_paint_paint(rct_window* w, rct_drawpixelinfo* dpi)
static void WindowDebugPaintPaint(rct_window* w, rct_drawpixelinfo* dpi)
{
WindowDrawWidgets(w, dpi);
}