cmCTestMemCheckCommand.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <string>
  6. #include <utility>
  7. #include <cm/memory>
  8. #include "cmCTestTestCommand.h"
  9. #include "cmCommand.h"
  10. class cmCTestGenericHandler;
  11. class cmCTestTestHandler;
  12. /** \class cmCTestMemCheck
  13. * \brief Run a ctest script
  14. *
  15. * cmCTestMemCheckCommand defineds the command to test the project.
  16. */
  17. class cmCTestMemCheckCommand : public cmCTestTestCommand
  18. {
  19. public:
  20. /**
  21. * This is a virtual constructor for the command.
  22. */
  23. std::unique_ptr<cmCommand> Clone() override
  24. {
  25. auto ni = cm::make_unique<cmCTestMemCheckCommand>();
  26. ni->CTest = this->CTest;
  27. return std::unique_ptr<cmCommand>(std::move(ni));
  28. }
  29. protected:
  30. void BindArguments() override;
  31. std::unique_ptr<cmCTestTestHandler> InitializeActualHandler() override;
  32. void ProcessAdditionalValues(cmCTestGenericHandler* handler) override;
  33. std::string DefectCount;
  34. };