Coverage Report

Created: 2026-03-12 06:35

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/cmGhsMultiGpj.cxx
Line
Count
Source
1
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2
   file LICENSE.rst or https://cmake.org/licensing for details.  */
3
#include "cmGhsMultiGpj.h"
4
5
#include <ostream>
6
7
static char const* GHS_TAG[] = { "[INTEGRITY Application]",
8
                                 "[Library]",
9
                                 "[Project]",
10
                                 "[Program]",
11
                                 "[Reference]",
12
                                 "[Subproject]",
13
                                 "[Custom Target]" };
14
15
char const* GhsMultiGpj::GetGpjTag(Types gpjType)
16
0
{
17
0
  char const* tag;
18
0
  switch (gpjType) {
19
0
    case INTEGRITY_APPLICATION:
20
0
    case LIBRARY:
21
0
    case PROJECT:
22
0
    case PROGRAM:
23
0
    case REFERENCE:
24
0
    case SUBPROJECT:
25
0
    case CUSTOM_TARGET:
26
0
      tag = GHS_TAG[gpjType];
27
0
      break;
28
0
    default:
29
0
      tag = "";
30
0
  }
31
0
  return tag;
32
0
}
33
34
void GhsMultiGpj::WriteGpjTag(Types gpjType, std::ostream& fout)
35
0
{
36
0
  char const* tag;
37
0
  tag = GhsMultiGpj::GetGpjTag(gpjType);
38
0
  fout << tag << std::endl;
39
0
}