1
0
Fork 0

Codechange: Disable clang-format in some corner cases.

pull/14014/head
frosch 2025-04-20 13:12:42 +02:00
parent 2480c14d49
commit 38242802dd
3 changed files with 15 additions and 4 deletions

View File

@ -301,7 +301,10 @@ public:
* @exception ScriptStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
* @return Whether the station has been/can be build or not.
*/
/* clang-format off */
/* wrapping breaks the squirrel-extractor */
static bool BuildNewGRFRailStation(TileIndex tile, RailTrack direction, SQInteger num_platforms, SQInteger platform_length, StationID station_id, CargoType cargo_type, IndustryType source_industry, IndustryType goal_industry, SQInteger distance, bool source_station);
/* clang-format on */
/**
* Build a rail waypoint.

View File

@ -15,12 +15,16 @@
#include "../string_func.h"
#include "script_fatalerror.hpp"
#include "../settings_type.h"
#include <sqstdaux.h>
#include <../squirrel/sqpcheader.h>
#include <../squirrel/sqvm.h>
#include "../core/math_func.hpp"
#include "../core/string_consumer.hpp"
/* clang-format off */
/* squirrel defines lots of generically named macros, which break some headers above, so move them to the end */
#include "../3rdparty/squirrel/include/sqstdaux.h"
#include "../3rdparty/squirrel/squirrel/sqpcheader.h"
#include "../3rdparty/squirrel/squirrel/sqvm.h"
/* clang-format on */
#include "../safeguards.h"
/*

View File

@ -42,12 +42,16 @@
#include "core/string_consumer.hpp"
#include <stack>
#include "table/strings.h"
#include "table/control_codes.h"
#include "3rdparty/fmt/std.h"
#include "strings_internal.h"
/* clang-format off */
/* work around "main include" detection */
#include "table/strings.h"
/* clang-format on */
#include "safeguards.h"
std::string _config_language_file; ///< The file (name) stored in the configuration.