@@ -333,9 +333,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
333
333
// / supply the mapping required to convert between ``T`` and a string.
334
334
template <typename T>
335
335
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 {
337
337
if (std::optional<int64_t > ValueOr =
338
- getEnumInt (LocalName, typeEraseMapping<T>(), false , IgnoreCase ))
338
+ getEnumInt (LocalName, typeEraseMapping<T>(), false ))
339
339
return static_cast <T>(*ValueOr);
340
340
return std::nullopt;
341
341
}
@@ -353,9 +353,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
353
353
// / \ref clang::tidy::OptionEnumMapping must be specialized for ``T`` to
354
354
// / supply the mapping required to convert between ``T`` and a string.
355
355
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);
359
359
}
360
360
361
361
// / Read a named option from the ``Context`` and parse it as an
@@ -373,9 +373,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
373
373
// / supply the mapping required to convert between ``T`` and a string.
374
374
template <typename T>
375
375
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 {
377
377
if (std::optional<int64_t > ValueOr =
378
- getEnumInt (LocalName, typeEraseMapping<T>(), true , IgnoreCase ))
378
+ getEnumInt (LocalName, typeEraseMapping<T>(), true ))
379
379
return static_cast <T>(*ValueOr);
380
380
return std::nullopt;
381
381
}
@@ -394,10 +394,9 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
394
394
// / \ref clang::tidy::OptionEnumMapping must be specialized for ``T`` to
395
395
// / supply the mapping required to convert between ``T`` and a string.
396
396
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);
401
400
}
402
401
403
402
// / Stores an option with the check-local name \p LocalName with
@@ -454,7 +453,7 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
454
453
455
454
std::optional<int64_t > getEnumInt (StringRef LocalName,
456
455
ArrayRef<NameAndValue> Mapping,
457
- bool CheckGlobal, bool IgnoreCase ) const ;
456
+ bool CheckGlobal) const ;
458
457
459
458
template <typename T>
460
459
std::enable_if_t <std::is_enum_v<T>, std::vector<NameAndValue>>
0 commit comments