diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2021-08-13 02:10:47 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2021-08-13 02:12:26 +0200 |
commit | 783d1c28c88229f81715f6ecd1cf3866855252a2 (patch) | |
tree | aff64f5f6f22f92ff5ae5ff9413d1b250470b4e4 /src/kconfig_compiler/KConfigXmlParser.cpp | |
parent | 17c179566d764d9a55b6ae98006495133bcffdbf (diff) | |
download | kconfig-783d1c28c88229f81715f6ecd1cf3866855252a2.tar.gz kconfig-783d1c28c88229f81715f6ecd1cf3866855252a2.tar.bz2 |
clang-tidy: one declaration per line; braces around statements
clang-tidy checks:
readability-isolate-declaration and readability-braces-around-statements
KF task: https://phabricator.kde.org/T14729
GIT_SILENT
Diffstat (limited to 'src/kconfig_compiler/KConfigXmlParser.cpp')
-rw-r--r-- | src/kconfig_compiler/KConfigXmlParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kconfig_compiler/KConfigXmlParser.cpp b/src/kconfig_compiler/KConfigXmlParser.cpp index 5b2fb775..3d054522 100644 --- a/src/kconfig_compiler/KConfigXmlParser.cpp +++ b/src/kconfig_compiler/KConfigXmlParser.cpp @@ -371,24 +371,24 @@ CfgEntry *KConfigXmlParser::parseEntry(const QString &group, const QString &pare readParamDefaultValues(readEntry, element); if (!mValidNameRegexp.match(readEntry.name).hasMatch()) { - if (nameIsEmpty) + if (nameIsEmpty) { std::cerr << "The key '" << qPrintable(readEntry.key) << "' can not be used as name for the entry because " "it is not a valid name. You need to specify a valid name for this entry." << std::endl; - else { + } else { std::cerr << "The name '" << qPrintable(readEntry.name) << "' is not a valid name for an entry." << std::endl; } exit(1); } if (mAllNames.contains(readEntry.name)) { - if (nameIsEmpty) + if (nameIsEmpty) { std::cerr << "The key '" << qPrintable(readEntry.key) << "' can not be used as name for the entry because " "it does not result in a unique name. You need to specify a unique name for this entry." << std::endl; - else { + } else { std::cerr << "The name '" << qPrintable(readEntry.name) << "' is not unique." << std::endl; } exit(1); |