@@ -56,35 +56,38 @@ static std::string getSourceLocationString(clang::Preprocessor &PP,
56
56
// Enum string tables.
57
57
58
58
// FileChangeReason strings.
59
- static const char *FileChangeReasonStrings[] = {
59
+ static const char *const FileChangeReasonStrings[] = {
60
60
" EnterFile" , " ExitFile" , " SystemHeaderPragma" , " RenameFile"
61
61
};
62
62
63
63
// CharacteristicKind strings.
64
- static const char *CharacteristicKindStrings[] = { " C_User" , " C_System" ,
65
- " C_ExternCSystem" };
64
+ static const char *const CharacteristicKindStrings[] = { " C_User" , " C_System" ,
65
+ " C_ExternCSystem" };
66
66
67
67
// MacroDirective::Kind strings.
68
- static const char *MacroDirectiveKindStrings[] = { " MD_Define" , " MD_Undefine" ,
69
- " MD_Visibility" };
68
+ static const char *const MacroDirectiveKindStrings[] = {
69
+ " MD_Define" ," MD_Undefine" , " MD_Visibility"
70
+ };
70
71
71
72
// PragmaIntroducerKind strings.
72
- static const char *PragmaIntroducerKindStrings[] = { " PIK_HashPragma" ,
73
- " PIK__Pragma" ,
74
- " PIK___pragma" };
73
+ static const char *const PragmaIntroducerKindStrings[] = { " PIK_HashPragma" ,
74
+ " PIK__Pragma" ,
75
+ " PIK___pragma" };
75
76
76
77
// PragmaMessageKind strings.
77
- static const char *PragmaMessageKindStrings[] = { " PMK_Message" , " PMK_Warning" ,
78
- " PMK_Error" };
78
+ static const char *const PragmaMessageKindStrings[] = {
79
+ " PMK_Message" , " PMK_Warning" , " PMK_Error"
80
+ };
79
81
80
82
// ConditionValueKind strings.
81
- static const char *ConditionValueKindStrings[] = {" CVK_NotEvaluated" ,
82
- " CVK_False" , " CVK_True" };
83
+ static const char *const ConditionValueKindStrings[] = {
84
+ " CVK_NotEvaluated" , " CVK_False" , " CVK_True"
85
+ };
83
86
84
87
// Mapping strings.
85
- static const char *MappingStrings[] = { " 0" , " MAP_IGNORE" ,
86
- " MAP_REMARK" , " MAP_WARNING" ,
87
- " MAP_ERROR" , " MAP_FATAL" };
88
+ static const char *const MappingStrings[] = { " 0" , " MAP_IGNORE" ,
89
+ " MAP_REMARK" , " MAP_WARNING" ,
90
+ " MAP_ERROR" , " MAP_FATAL" };
88
91
89
92
// PPCallbacksTracker functions.
90
93
@@ -453,7 +456,7 @@ void PPCallbacksTracker::appendArgument(const char *Name,
453
456
454
457
// Append an enum argument to the top trace item.
455
458
void PPCallbacksTracker::appendArgument (const char *Name, int Value,
456
- const char *Strings[]) {
459
+ const char *const Strings[]) {
457
460
appendArgument (Name, Strings[Value]);
458
461
}
459
462
0 commit comments