Skip to content

Commit c75210c

Browse files
committed
Fix clang-tidy findings.
* All parameters should be named in a function. * static member access through instance.
1 parent 68a135a commit c75210c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/cppcheckexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ int CppCheckExecutor::check(int argc, const char* const argv[])
220220
if (settings.xml)
221221
mReport = std::unique_ptr<AnalysisReport>(new XMLAnalysisReport(settings.cppcheckCfgProductName));
222222
else if (settings.sarif)
223-
mReport = std::unique_ptr<AnalysisReport>(new SARIFAnalysisReport(cppCheck.version()));
223+
mReport = std::unique_ptr<AnalysisReport>(new SARIFAnalysisReport(CppCheck::version()));
224224
else
225225
mReport = std::unique_ptr<AnalysisReport>(new CLIAnalysisReport(settings.verbose, settings.templateFormat, settings.templateLocation));
226226

cli/xmlanalysisreport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
class XMLAnalysisReport : public AnalysisReport {
3131
public:
32-
explicit XMLAnalysisReport(const std::string&);
32+
explicit XMLAnalysisReport(const std::string& productName);
3333
void addFinding(const ErrorMessage &msg) override;
3434
std::string emit() override;
3535
private:

0 commit comments

Comments
 (0)