Enforce variable and parameter casing style

This commit is contained in:
Chris Thrasher committed 2024-09-07 21:26:36 -06:00
1 parent 055e69520f
commit b662349832
4 files changed
+14 -9

No files matched your search

+5
View File
@@ -3,6 +3,7 @@ Checks: >
clang-analyzer-*,
cppcoreguidelines-*,
modernize-*,
readability-identifier-naming,
-bugprone-easily-swappable-parameters,
-bugprone-narrowing-conversions,
-clang-analyzer-core.NonNullParamChecker,
@@ -26,6 +27,10 @@ Checks: >
-modernize-redundant-void-arg,
-modernize-use-trailing-return-type,
-modernize-use-using,
CheckOptions:
- { key: readability-identifier-naming.VariableCase, value: camelBack }
- { key: readability-identifier-naming.GlobalVariableCase, value: aNy_CasE }
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
HeaderFilterRegex: '.*'
WarningsAsErrors: '*'
UseColor: true
+4 -4
View File
@@ -90,12 +90,12 @@ sfGlyph sfFont_getGlyph(const sfFont* font, uint32_t codePoint, unsigned int cha
{
assert(font);
sf::Glyph SFMLGlyph = font->This.getGlyph(codePoint, characterSize, bold, outlineThickness);
sf::Glyph sfmlGlyph = font->This.getGlyph(codePoint, characterSize, bold, outlineThickness);
sfGlyph glyph{};
glyph.advance = SFMLGlyph.advance;
glyph.bounds = convertRect(SFMLGlyph.bounds);
glyph.textureRect = convertRect(SFMLGlyph.textureRect);
glyph.advance = sfmlGlyph.advance;
glyph.bounds = convertRect(sfmlGlyph.bounds);
glyph.textureRect = convertRect(sfmlGlyph.textureRect);
return glyph;
}
+2 -2
View File
@@ -177,8 +177,8 @@ void sfText_setString(sfText* text, const char* string)
void sfText_setUnicodeString(sfText* text, const sfChar32* string)
{
assert(text);
sf::String UTF32Text = reinterpret_cast<const char32_t*>(string);
text->This.setString(UTF32Text);
sf::String utf32Text = reinterpret_cast<const char32_t*>(string);
text->This.setString(utf32Text);
}
+3 -3
View File
@@ -203,12 +203,12 @@ sfFtpResponse* sfFtp_connect(sfFtp* ftp, sfIpAddress server, unsigned short port
{
assert(ftp);
std::optional<sf::IpAddress> SFMLServer = sf::IpAddress::resolve(server.address);
std::optional<sf::IpAddress> sfmlServer = sf::IpAddress::resolve(server.address);
if (!SFMLServer)
if (!sfmlServer)
return nullptr;
return new sfFtpResponse{ftp->This.connect(*SFMLServer, port, sf::microseconds(timeout.microseconds))};
return new sfFtpResponse{ftp->This.connect(*sfmlServer, port, sf::microseconds(timeout.microseconds))};
}