@@ -333,9 +333,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
333333 // / supply the mapping required to convert between ``T`` and a string.
334334 template <typename T>
335335 std::enable_if_t <std::is_enum_v<T>, std::optional<T>>
336- get (StringRef LocalName, bool IgnoreCase = false ) const {
336+ get (StringRef LocalName) const {
337337 if (std::optional<int64_t > ValueOr =
338- getEnumInt (LocalName, typeEraseMapping<T>(), false , IgnoreCase ))
338+ getEnumInt (LocalName, typeEraseMapping<T>(), false ))
339339 return static_cast <T>(*ValueOr);
340340 return std::nullopt ;
341341 }
@@ -353,9 +353,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
353353 // / \ref clang::tidy::OptionEnumMapping must be specialized for ``T`` to
354354 // / supply the mapping required to convert between ``T`` and a string.
355355 template <typename T>
356- std::enable_if_t <std::is_enum_v<T>, T> get (StringRef LocalName, T Default,
357- bool IgnoreCase = false ) const {
358- return get<T>(LocalName, IgnoreCase ).value_or (Default);
356+ std::enable_if_t <std::is_enum_v<T>, T> get (StringRef LocalName,
357+ T Default ) const {
358+ return get<T>(LocalName).value_or (Default);
359359 }
360360
361361 // / Read a named option from the ``Context`` and parse it as an
@@ -373,9 +373,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
373373 // / supply the mapping required to convert between ``T`` and a string.
374374 template <typename T>
375375 std::enable_if_t <std::is_enum_v<T>, std::optional<T>>
376- getLocalOrGlobal (StringRef LocalName, bool IgnoreCase = false ) const {
376+ getLocalOrGlobal (StringRef LocalName) const {
377377 if (std::optional<int64_t > ValueOr =
378- getEnumInt (LocalName, typeEraseMapping<T>(), true , IgnoreCase ))
378+ getEnumInt (LocalName, typeEraseMapping<T>(), true ))
379379 return static_cast <T>(*ValueOr);
380380 return std::nullopt ;
381381 }
@@ -394,10 +394,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
394394 // / \ref clang::tidy::OptionEnumMapping must be specialized for ``T`` to
395395 // / supply the mapping required to convert between ``T`` and a string.
396396 template <typename T>
397- std::enable_if_t <std::is_enum_v<T>, T>
398- getLocalOrGlobal (StringRef LocalName, T Default,
399- bool IgnoreCase = false ) const {
400- return getLocalOrGlobal<T>(LocalName, IgnoreCase).value_or (Default);
397+ std::enable_if_t <std::is_enum_v<T>, T> getLocalOrGlobal (StringRef LocalName,
398+ T Default) const {
399+ return getLocalOrGlobal<T>(LocalName).value_or (Default);
401400 }
402401
403402 // / Stores an option with the check-local name \p LocalName with
@@ -454,7 +453,7 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
454453
455454 std::optional<int64_t > getEnumInt (StringRef LocalName,
456455 ArrayRef<NameAndValue> Mapping,
457- bool CheckGlobal, bool IgnoreCase ) const ;
456+ bool CheckGlobal) const ;
458457
459458 template <typename T>
460459 std::enable_if_t <std::is_enum_v<T>, std::vector<NameAndValue>>
0 commit comments