formatting, lint

This commit is contained in:
John
2024-10-01 06:44:52 +02:00
parent 441a3f6457
commit 5d8c9735d2
12 changed files with 31 additions and 22 deletions
+2 -2
View File
@@ -203,7 +203,7 @@ bool isValidIdentifierChar(char ch, bool first, bool allowFirstDigit) {
bool DataField::checkIdentifier(const string& name, bool allowFirstDigit) {
for (size_t i = 0; i < name.size(); i++) {
char ch = name[i];
if (!isValidIdentifierChar(ch, i==0, allowFirstDigit)) {
if (!isValidIdentifierChar(ch, i == 0, allowFirstDigit)) {
return false;
}
}
@@ -213,7 +213,7 @@ bool DataField::checkIdentifier(const string& name, bool allowFirstDigit) {
void DataField::normalizeIdentifier(string& name, bool allowFirstDigit) {
for (size_t i = 0; i < name.size(); i++) {
char ch = name[i];
if (!isValidIdentifierChar(ch, i==0, allowFirstDigit)) {
if (!isValidIdentifierChar(ch, i == 0, allowFirstDigit)) {
name[i] = '_';
}
}