cmCTestCoverageCommand.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCTestCoverageCommand_h
  4. #define cmCTestCoverageCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTestHandlerCommand.h"
  7. #include <set>
  8. #include <string>
  9. class cmCTestGenericHandler;
  10. class cmCommand;
  11. /** \class cmCTestCoverage
  12. * \brief Run a ctest script
  13. *
  14. * cmCTestCoverageCommand defineds the command to test the project.
  15. */
  16. class cmCTestCoverageCommand : public cmCTestHandlerCommand
  17. {
  18. public:
  19. cmCTestCoverageCommand();
  20. /**
  21. * This is a virtual constructor for the command.
  22. */
  23. cmCommand* Clone() override
  24. {
  25. cmCTestCoverageCommand* ni = new cmCTestCoverageCommand;
  26. ni->CTest = this->CTest;
  27. ni->CTestScriptHandler = this->CTestScriptHandler;
  28. return ni;
  29. }
  30. /**
  31. * The name of the command as specified in CMakeList.txt.
  32. */
  33. std::string GetName() const override { return "ctest_coverage"; }
  34. typedef cmCTestHandlerCommand Superclass;
  35. protected:
  36. cmCTestGenericHandler* InitializeHandler() override;
  37. bool CheckArgumentKeyword(std::string const& arg) override;
  38. bool CheckArgumentValue(std::string const& arg) override;
  39. enum
  40. {
  41. ArgumentDoingLabels = Superclass::ArgumentDoingLast1,
  42. ArgumentDoingLast2
  43. };
  44. bool LabelsMentioned;
  45. std::set<std::string> Labels;
  46. };
  47. #endif