From f3365a874fa50307d195ba87f7c0228ebaaf4d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 6 Jul 2021 12:18:03 +0200 Subject: [PATCH] Clarify Settings::buildDir --- lib/checkfunctions.cpp | 2 +- lib/settings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index 9a53f24b3..d441b6a6b 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -547,7 +547,7 @@ void CheckFunctions::checkLibraryMatchFunctions() // details: https://en.cppreference.com/w/cpp/language/copy_elision void CheckFunctions::returnLocalStdMove() { - if(!mTokenizer->isCPP() || mSettings->standards.cpp < Standards::CPP11) + if (!mTokenizer->isCPP() || mSettings->standards.cpp < Standards::CPP11) return; if (!mSettings->severity.isEnabled(Severity::performance)) diff --git a/lib/settings.h b/lib/settings.h index 682a7932d..2cfc2d60f 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -114,7 +114,7 @@ public: /** Filename for bug hunting report */ std::string bugHuntingReport; - /** @brief --cppcheck-build-dir */ + /** @brief --cppcheck-build-dir. Always uses / as path separator. No trailing path separator. */ std::string buildDir; /** @brief check all configurations (false if -D or --max-configs is used */