Skip to content

Commit 6518353

Browse files
committed
Disable clang-tidy warnings in legacy code
This code will be removed with the pgsql output at some point and we don't want to fiddle with it any more than necessary.
1 parent e792264 commit 6518353

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/table.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ void table_t::task_wait()
355355
util::human_readable_duration(run_time));
356356
}
357357

358+
// NOLINTBEGIN(google-runtime-int,cert-err34-c)
359+
// This is legacy code which will be removed anyway.
360+
358361
/* Escape data appropriate to the type */
359362
void table_t::escape_type(std::string const &value, ColumnType flags)
360363
{
@@ -423,6 +426,7 @@ void table_t::escape_type(std::string const &value, ColumnType flags)
423426
break;
424427
}
425428
}
429+
// NOLINTEND(google-runtime-int,cert-err34-c)
426430

427431
pg_result_t table_t::get_wkb(osmid_t id)
428432
{

src/taginfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ unsigned get_tag_type(std::string const &tag)
8787

8888
} // anonymous namespace
8989

90+
// NOLINTBEGIN(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
91+
// This is legacy code which will be removed anyway.
9092
bool read_style_file(std::string const &filename, export_list *exlist)
9193
{
9294
bool enable_way_area = true;
@@ -195,3 +197,4 @@ bool read_style_file(std::string const &filename, export_list *exlist)
195197

196198
return enable_way_area;
197199
}
200+
// NOLINTEND(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)

0 commit comments

Comments
 (0)