cmake/Source/CTest/cmParseGTMCoverage.h

42 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. */
2012-06-27 20:52:58 +03:00
#ifndef cmParseGTMCoverage_h
#define cmParseGTMCoverage_h
2016-10-30 18:24:19 +01:00
#include <cmConfigure.h>
2012-06-27 20:52:58 +03:00
#include "cmParseMumpsCoverage.h"
2016-10-30 18:24:19 +01:00
#include <string>
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
2016-10-30 18:24:19 +01:00
bool LoadCoverageData(const char* dir) CM_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
};
#endif