cmake/Source/CTest/cmCTestMemCheckCommand.h

46 lines
1.1 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
2020-02-01 23:06:01 +01:00
#include <string>
#include <utility>
#include <cm/memory>
#include "cmCTestTestCommand.h"
2020-02-01 23:06:01 +01:00
#include "cmCommand.h"
2016-10-30 18:24:19 +01:00
class cmCTestGenericHandler;
2021-09-14 00:13:48 +02:00
class cmCTestTestHandler;
/** \class cmCTestMemCheck
* \brief Run a ctest script
*
* cmCTestMemCheckCommand defineds the command to test the project.
*/
class cmCTestMemCheckCommand : public cmCTestTestCommand
{
public:
/**
* This is a virtual constructor for the command.
*/
2020-02-01 23:06:01 +01:00
std::unique_ptr<cmCommand> Clone() override
2016-07-09 11:21:54 +02:00
{
2020-02-01 23:06:01 +01:00
auto ni = cm::make_unique<cmCTestMemCheckCommand>();
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
2020-02-01 23:06:01 +01:00
return std::unique_ptr<cmCommand>(std::move(ni));
2016-07-09 11:21:54 +02:00
}
protected:
2020-02-01 23:06:01 +01:00
void BindArguments() override;
2021-09-14 00:13:48 +02:00
cmCTestTestHandler* InitializeActualHandler() override;
2017-04-14 19:02:05 +02:00
2018-01-26 17:06:56 +01:00
void ProcessAdditionalValues(cmCTestGenericHandler* handler) override;
2017-04-14 19:02:05 +02:00
2020-02-01 23:06:01 +01:00
std::string DefectCount;
};