mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-19 01:07:00 -04:00
chore: suppress some clang-tidy issues
This commit is contained in:
parent
99d375e740
commit
f4d87ee868
@ -134,6 +134,7 @@ class performance_monitor_proxy {
|
||||
std::shared_ptr<performance_monitor> monitor = \
|
||||
performance_monitor::create(enabled_namespaces);
|
||||
|
||||
// NOLINTBEGIN(bugprone-macro-parentheses)
|
||||
#define PERFMON_PROXY_DECL(instname) performance_monitor_proxy instname;
|
||||
#define PERFMON_PROXY_INIT(instname, monitor, name_space) \
|
||||
, instname { monitor, name_space }
|
||||
@ -145,6 +146,7 @@ class performance_monitor_proxy {
|
||||
auto perfmon_scoped_section_ = instname.scoped_section(perfmon_##id##_id_);
|
||||
#define PERFMON_PROXY_SETUP(instname, monitor, name_space) \
|
||||
instname = performance_monitor_proxy(monitor, name_space);
|
||||
// NOLINTEND(bugprone-macro-parentheses)
|
||||
|
||||
#define PERFMON_SECTION_ARG perfmon_scoped_section_
|
||||
#define PERFMON_SECTION_ARG_ perfmon_scoped_section_,
|
||||
|
@ -46,6 +46,7 @@ class fragment_category {
|
||||
explicit fragment_category(value_type v)
|
||||
: value_{v} {}
|
||||
|
||||
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||
fragment_category(value_type v, value_type subcategory)
|
||||
: value_{v}
|
||||
, subcategory_{subcategory} {}
|
||||
|
@ -32,6 +32,7 @@ namespace dwarfs::internal {
|
||||
namespace {
|
||||
|
||||
char32_t case_fold_char_slow(char32_t in) {
|
||||
// NOLINTBEGIN(bugprone-branch-clone)
|
||||
switch (in) {
|
||||
case 0x00B5:
|
||||
return 0x03BC; // [C] MICRO SIGN
|
||||
@ -2977,6 +2978,7 @@ char32_t case_fold_char_slow(char32_t in) {
|
||||
default:
|
||||
return in;
|
||||
}
|
||||
// NOLINTEND(bugprone-branch-clone)
|
||||
}
|
||||
|
||||
inline char32_t case_fold_char(char32_t in) {
|
||||
|
@ -499,6 +499,7 @@ static const struct width_interval WIDE_EASTASIAN[] = {
|
||||
{0x30000, 0x3fffd}, // Cjk Unified Ideograph-30..(nil)
|
||||
};
|
||||
|
||||
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||
static bool intable(struct width_interval const* table, int table_length, int c) {
|
||||
// First quick check for Latin1 etc. characters.
|
||||
if (c < table[0].start) return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user