cmake/Source/CTest/cmParseGTMCoverage.h

39 lines
1.3 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
2012-06-27 20:52:58 +03:00
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include <string>
2020-02-01 23:06:01 +01:00
#include "cmParseMumpsCoverage.h"
2016-10-30 18:24:19 +01:00
class cmCTest;
class cmCTestCoverageHandlerContainer;
2012-06-27 20:52:58 +03:00
/** \class cmParseGTMCoverage
* \brief Parse GTM coverage information
*
* This class is used to parse GTM coverage information for
* mumps.
*/
class cmParseGTMCoverage : public cmParseMumpsCoverage
{
public:
2016-07-09 11:21:54 +02:00
cmParseGTMCoverage(cmCTestCoverageHandlerContainer& cont, cmCTest* ctest);
2012-06-27 20:52:58 +03:00
protected:
// implement virtual from parent
2020-08-30 11:54:41 +02:00
bool LoadCoverageData(std::string const& dir) override;
2012-06-27 20:52:58 +03:00
// Read a single mcov file
bool ReadMCovFile(const char* f);
// find out what line in a mumps file (filepath) the given entry point
// or function is. lineoffset is set by this method.
bool FindFunctionInMumpsFile(std::string const& filepath,
2016-07-09 11:21:54 +02:00
std::string const& function, int& lineoffset);
2012-06-27 20:52:58 +03:00
// parse a line from a .mcov file, and fill in the
// routine, function, linenumber and coverage count
2016-07-09 11:21:54 +02:00
bool ParseMCOVLine(std::string const& line, std::string& routine,
std::string& function, int& linenumber, int& count);
2012-06-27 20:52:58 +03:00
};