Coverage Report

Created: 2018-09-25 00:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/clang-build/tools/clang/include/clang/AST/CommentHTMLTagsProperties.inc
Line
Count
Source (jump to first uncovered line)
1
/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2
|*                                                                            *|
3
|* HTML tag properties                                                        *|
4
|*                                                                            *|
5
|* Automatically generated file, do not edit!                                 *|
6
|*                                                                            *|
7
\*===----------------------------------------------------------------------===*/
8
9
41
bool isHTMLEndTagOptional(StringRef Name) {
10
41
  switch (Name.size()) {
11
41
  
default: break0
;
12
41
  case 1:  // 1 string to match.
13
39
    if (Name[0] != 'p')
14
39
      break;
15
0
    return true;   // "p"
16
2
  case 2:  // 6 strings to match.
17
2
    switch (Name[0]) {
18
2
    default: break;
19
2
    case 'd':  // 2 strings to match.
20
0
      switch (Name[1]) {
21
0
      default: break;
22
0
      case 'd':  // 1 string to match.
23
0
        return true;  // "dd"
24
0
      case 't':  // 1 string to match.
25
0
        return true;  // "dt"
26
0
      }
27
0
      break;
28
0
    case 'l':  // 1 string to match.
29
0
      if (Name[1] != 'i')
30
0
        break;
31
0
      return true;   // "li"
32
0
    case 't':  // 3 strings to match.
33
0
      switch (Name[1]) {
34
0
      default: break;
35
0
      case 'd':  // 1 string to match.
36
0
        return true;  // "td"
37
0
      case 'h':  // 1 string to match.
38
0
        return true;  // "th"
39
0
      case 'r':  // 1 string to match.
40
0
        return true;  // "tr"
41
0
      }
42
0
      break;
43
2
    }
44
2
    break;
45
2
  case 5:  // 3 strings to match.
46
0
    if (Name[0] != 't')
47
0
      break;
48
0
    switch (Name[1]) {
49
0
    default: break;
50
0
    case 'b':  // 1 string to match.
51
0
      if (memcmp(Name.data()+2, "ody", 3) != 0)
52
0
        break;
53
0
      return true;   // "tbody"
54
0
    case 'f':  // 1 string to match.
55
0
      if (memcmp(Name.data()+2, "oot", 3) != 0)
56
0
        break;
57
0
      return true;   // "tfoot"
58
0
    case 'h':  // 1 string to match.
59
0
      if (memcmp(Name.data()+2, "ead", 3) != 0)
60
0
        break;
61
0
      return true;  // "thead"
62
0
    }
63
0
    break;
64
0
  case 8:  // 1 string to match.
65
0
    if (memcmp(Name.data()+0, "colgroup", 8) != 0)
66
0
      break;
67
0
    return true;  // "colgroup"
68
41
  }
69
41
  return false;
70
41
}
71
72
132
bool isHTMLEndTagForbidden(StringRef Name) {
73
132
  switch (Name.size()) {
74
132
  
default: break92
;
75
132
  case 2:  // 2 strings to match.
76
30
    switch (Name[0]) {
77
30
    
default: break18
;
78
30
    case 'b':  // 1 string to match.
79
8
      if (Name[1] != 'r')
80
0
        break;
81
8
      return true;   // "br"
82
8
    case 'h':  // 1 string to match.
83
4
      if (Name[1] != 'r')
84
4
        break;
85
0
      return true;  // "hr"
86
22
    }
87
22
    break;
88
22
  case 3:  // 2 strings to match.
89
10
    switch (Name[0]) {
90
10
    
default: break6
;
91
10
    case 'c':  // 1 string to match.
92
0
      if (memcmp(Name.data()+1, "ol", 2) != 0)
93
0
        break;
94
0
      return true;   // "col"
95
4
    case 'i':  // 1 string to match.
96
4
      if (memcmp(Name.data()+1, "mg", 2) != 0)
97
0
        break;
98
4
      return true;  // "img"
99
6
    }
100
6
    break;
101
120
  }
102
120
  return false;
103
120
}
104