diff --git a/.clang-tidy b/.clang-tidy index ed80138ee..eff429960 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -16,7 +16,8 @@ Checks: '*, -hicpp-braces-around-statements, -google-runtime-references, -google-readability-todo, - -google-readability-braces-around-statements' + -google-readability-braces-around-statements, + -modernize-use-trailing-return-type' HeaderFilterRegex: \.h AnalyzeTemporaryDtors: false diff --git a/slsDetectorSoftware/src/CmdParser.cpp b/slsDetectorSoftware/src/CmdParser.cpp index ce200c630..c9f47bd9b 100755 --- a/slsDetectorSoftware/src/CmdParser.cpp +++ b/slsDetectorSoftware/src/CmdParser.cpp @@ -93,7 +93,7 @@ void CmdParser::DecodeIdAndPosition(const char *c) { std::vector CmdParser::argv() const { std::vector vec; - if (command_.empty() != true) { + if (!command_.empty()) { vec.push_back(&command_.front()); } for (auto &arg : arguments_) {