clang: include/clang/Tooling/Inclusions/IncludeStyle.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_CLANG_TOOLING_INCLUSIONS_INCLUDESTYLE_H

10#define LLVM_CLANG_TOOLING_INCLUSIONS_INCLUDESTYLE_H

11

12#include "llvm/Support/YAMLTraits.h"

13#include

14#include

15

18

19

21

23

24

25

26

27

28

29

31

32

33

34

35

36

37

39

40

41

42

43

44

45

46

47

49 };

50

51

52

53

55

56

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118 std::vector IncludeCategories;

119

120

121

122

123

124

125

126

127

128

129

130

131

132 std::string IncludeIsMainRegex;

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153 std::string IncludeIsMainSourceRegex;

154

155

156 enum MainIncludeCharDiscriminator : int8_t {

157

158 MICD_Quote,

159

161

162 MICD_Any

163 };

164

165

166

167

169};

170

171}

172}

173

175

176namespace llvm {

177namespace yaml {

178

179template <>

180struct MappingTraits<clang::tooling::IncludeStyle::IncludeCategory> {

183};

184

185template <>

186struct ScalarEnumerationTraits<

187 clang::tooling::IncludeStyle::IncludeBlocksStyle> {

188 static void

190};

191

192template <>

193struct ScalarEnumerationTraits<

194 clang::tooling::IncludeStyle::MainIncludeCharDiscriminator> {

196 IO &IO,

197 clang::tooling::IncludeStyle::MainIncludeCharDiscriminator &Value);

198};

199

200}

201}

202

203#endif

The JSON file list parser is used to communicate input to InstallAPI.

@ Other

Other implicit parameter.

Diagnostic wrappers for TextAPI types for error reporting.

static void enumeration(IO &IO, clang::tooling::IncludeStyle::MainIncludeCharDiscriminator &Value)