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/kconfig_compiler.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/kconfig_compiler.cpp')
-rw-r--r-- | src/kconfig_compiler/kconfig_compiler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp index 28b10e4f..761e64fc 100644 --- a/src/kconfig_compiler/kconfig_compiler.cpp +++ b/src/kconfig_compiler/kconfig_compiler.cpp @@ -645,10 +645,11 @@ QString indent(QString text, int spaces) QString currLine; while (!in.atEnd()) { currLine = in.readLine(); - if (!currLine.isEmpty()) + if (!currLine.isEmpty()) { for (int i = 0; i < spaces; ++i) { out << " "; } + } out << currLine << '\n'; } return result; @@ -700,7 +701,8 @@ int main(int argc, char **argv) app.setApplicationName(QStringLiteral("kconfig_compiler")); app.setApplicationVersion(QStringLiteral(KCONFIG_VERSION_STRING)); - QString inputFilename, codegenFilename; + QString inputFilename; + QString codegenFilename; QCommandLineOption targetDirectoryOption(QStringList{QStringLiteral("d"), QStringLiteral("directory")}, QCoreApplication::translate("main", "Directory to generate files in [.]"), |