Lines Matching defs:LocalName

155     /// Reads the option with the check-local name \p LocalName from the
158 std::optional<StringRef> get(StringRef LocalName) const;
162 /// Reads the option with the check-local name \p LocalName from the
165 StringRef get(StringRef LocalName, StringRef Default) const;
169 /// Reads the option with the check-local name \p LocalName from local or
173 std::optional<StringRef> getLocalOrGlobal(StringRef LocalName) const;
177 /// Reads the option with the check-local name \p LocalName from local or
181 StringRef getLocalOrGlobal(StringRef LocalName, StringRef Default) const;
186 /// Reads the option with the check-local name \p LocalName from the
194 get(StringRef LocalName) const {
195 if (std::optional<StringRef> Value = get(LocalName)) {
199 diagnoseBadIntegerOption(NamePrefix + LocalName, *Value);
207 /// Reads the option with the check-local name \p LocalName from the
216 get(StringRef LocalName, std::optional<T> Default) const {
217 if (std::optional<StringRef> Value = get(LocalName)) {
224 diagnoseBadIntegerOption(NamePrefix + LocalName, *Value);
232 /// Reads the option with the check-local name \p LocalName from the
239 std::enable_if_t<std::is_integral_v<T>, T> get(StringRef LocalName,
241 return get<T>(LocalName).value_or(Default);
247 /// Reads the option with the check-local name \p LocalName from local or
256 getLocalOrGlobal(StringRef LocalName) const {
257 std::optional<StringRef> ValueOr = get(LocalName);
261 ValueOr = getLocalOrGlobal(LocalName);
269 IsGlobal ? Twine(LocalName) : NamePrefix + LocalName, *ValueOr);
276 /// Reads the option with the check-local name \p LocalName from local or
286 getLocalOrGlobal(StringRef LocalName, std::optional<T> Default) const {
287 std::optional<StringRef> ValueOr = get(LocalName);
291 ValueOr = getLocalOrGlobal(LocalName);
302 IsGlobal ? Twine(LocalName) : NamePrefix + LocalName, *ValueOr);
309 /// Reads the option with the check-local name \p LocalName from local or
318 getLocalOrGlobal(StringRef LocalName, T Default) const {
319 return getLocalOrGlobal<T>(LocalName).value_or(Default);
325 /// Reads the option with the check-local name \p LocalName from the
336 get(StringRef LocalName) const {
338 getEnumInt(LocalName, typeEraseMapping<T>(), false))
346 /// Reads the option with the check-local name \p LocalName from the
356 std::enable_if_t<std::is_enum_v<T>, T> get(StringRef LocalName,
358 return get<T>(LocalName).value_or(Default);
364 /// Reads the option with the check-local name \p LocalName from local or
376 getLocalOrGlobal(StringRef LocalName) const {
378 getEnumInt(LocalName, typeEraseMapping<T>(), true))
386 /// Reads the option with the check-local name \p LocalName from local or
397 std::enable_if_t<std::is_enum_v<T>, T> getLocalOrGlobal(StringRef LocalName,
399 return getLocalOrGlobal<T>(LocalName).value_or(Default);
402 /// Stores an option with the check-local name \p LocalName with
404 void store(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
407 /// Stores an option with the check-local name \p LocalName with
411 store(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
414 storeInt(Options, LocalName, Value);
416 storeUnsigned(Options, LocalName, Value);
419 /// Stores an option with the check-local name \p LocalName with
424 store(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
427 store(Options, LocalName, *Value);
429 store(Options, LocalName, "none");
432 /// Stores an option with the check-local name \p LocalName as the string
439 store(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
448 store(Options, LocalName, Iter->second);
454 std::optional<int64_t> getEnumInt(StringRef LocalName,
472 void storeInt(ClangTidyOptions::OptionMap &Options, StringRef LocalName,
476 StringRef LocalName, uint64_t Value) const;
504 /// Reads the option with the check-local name \p LocalName from the
512 ClangTidyCheck::OptionsView::get<bool>(StringRef LocalName) const;
516 /// Reads the option with the check-local name \p LocalName from the
524 ClangTidyCheck::OptionsView::getLocalOrGlobal<bool>(StringRef LocalName) const;
526 /// Stores an option with the check-local name \p LocalName with
530 ClangTidyOptions::OptionMap &Options, StringRef LocalName,