@@ -115,36 +115,36 @@ class LanguageFeatureControl {
115115 bool IsEnabled (LanguageFeature f) const { return !disable_.test (f); }
116116 bool ShouldWarn (LanguageFeature f) const { return warnLanguage_.test (f); }
117117 bool ShouldWarn (UsageWarning w) const { return warnUsage_.test (w); }
118- // CLI options
119- bool ApplyCLIOption (std::string input);
120- void AddAlternativeCLISpelling (LanguageFeature f, std::string input) {
118+ // Cli options
119+ bool ApplyCliOption (std::string input);
120+ void AddAlternativeCliSpelling (LanguageFeature f, std::string input) {
121121 cliOptions_.insert ({input, {f}});
122122 }
123- void AddAlternativeCLISpelling (UsageWarning w, std::string input) {
123+ void AddAlternativeCliSpelling (UsageWarning w, std::string input) {
124124 cliOptions_.insert ({input, {w}});
125125 }
126- void ReplaceCLICanonicalSpelling (LanguageFeature f, std::string input);
127- void ReplaceCLICanonicalSpelling (UsageWarning w, std::string input);
128- std::string_view getDefaultCLISpelling (LanguageFeature f) const {
129- return languageFeatureCLICanonicalSpelling_ [EnumToInt (f)];
126+ void ReplaceCliCanonicalSpelling (LanguageFeature f, std::string input);
127+ void ReplaceCliCanonicalSpelling (UsageWarning w, std::string input);
128+ std::string_view getDefaultCliSpelling (LanguageFeature f) const {
129+ return languageFeatureCliCanonicalSpelling_ [EnumToInt (f)];
130130 };
131- std::string_view getDefaultCLISpelling (UsageWarning w) const {
132- return usageWarningCLICanonicalSpelling_ [EnumToInt (w)];
131+ std::string_view getDefaultCliSpelling (UsageWarning w) const {
132+ return usageWarningCliCanonicalSpelling_ [EnumToInt (w)];
133133 };
134134 // Return all spellings of operators names, depending on features enabled
135135 std::vector<const char *> GetNames (LogicalOperator) const ;
136136 std::vector<const char *> GetNames (RelationalOperator) const ;
137137
138138private:
139- // Map from CLI syntax of language features and usage warnings to their enum
139+ // Map from Cli syntax of language features and usage warnings to their enum
140140 // values.
141141 std::unordered_map<std::string, std::variant<LanguageFeature, UsageWarning>>
142142 cliOptions_;
143- // These two arrays map the enum values to their cannonical CLI spellings.
143+ // These two arrays map the enum values to their cannonical Cli spellings.
144144 std::array<std::string_view, LanguageFeature_enumSize>
145- languageFeatureCLICanonicalSpelling_ ;
145+ languageFeatureCliCanonicalSpelling_ ;
146146 std::array<std::string_view, UsageWarning_enumSize>
147- usageWarningCLICanonicalSpelling_ ;
147+ usageWarningCliCanonicalSpelling_ ;
148148 LanguageFeatures disable_;
149149 LanguageFeatures warnLanguage_;
150150 bool warnAllLanguage_{false };
0 commit comments