1515
1616namespace Fortran ::common {
1717
18- // Namespace for helper functions for parsing CLI options
19- // used instead of static so that there can be unit tests for these
20- // functions.
21- namespace featuresHelpers {
22-
2318static std::vector<std::string_view> SplitCamelCase (std::string_view x) {
2419 std::vector<std::string_view> result;
2520 // NB, we start at 1 because the first character is never a word boundary.
@@ -42,6 +37,9 @@ static std::vector<std::string_view> SplitCamelCase(std::string_view x) {
4237 return result;
4338}
4439
40+ // Namespace for helper functions for parsing CLI options used instead of static
41+ // so that there can be unit tests for this function.
42+ namespace featuresHelpers {
4543std::string CamelCaseToLowerCaseHyphenated (std::string_view x) {
4644 std::vector<std::string_view> words{SplitCamelCase (x)};
4745 std::string result{};
@@ -160,7 +158,7 @@ LanguageFeatureControl::LanguageFeatureControl() {
160158
161159// Take a string from the CLI and apply it to the LanguageFeatureControl.
162160// Return true if the option was applied recognized.
163- bool LanguageFeatureControl::applyCLIOption (std::string input) {
161+ bool LanguageFeatureControl::ApplyCLIOption (std::string input) {
164162 bool negated{false };
165163 if (input.size () > 3 && input.substr (0 , 3 ) == " no-" ) {
166164 negated = true ;
@@ -179,15 +177,15 @@ bool LanguageFeatureControl::applyCLIOption(std::string input) {
179177 return false ;
180178}
181179
182- void LanguageFeatureControl::replaceCliCanonicalSpelling (
180+ void LanguageFeatureControl::ReplaceCliCanonicalSpelling (
183181 LanguageFeature f, std::string input) {
184182 std::string_view old{languageFeatureCliCanonicalSpelling_[EnumToInt (f)]};
185183 cliOptions_.erase (std::string{old});
186184 languageFeatureCliCanonicalSpelling_[EnumToInt (f)] = input;
187185 cliOptions_.insert ({input, {f}});
188186}
189187
190- void LanguageFeatureControl::replaceCliCanonicalSpelling (
188+ void LanguageFeatureControl::ReplaceCliCanonicalSpelling (
191189 UsageWarning w, std::string input) {
192190 std::string_view old{usageWarningCliCanonicalSpelling_[EnumToInt (w)]};
193191 cliOptions_.erase (std::string{old});
0 commit comments