Skip to content

Commit 0bb8ca5

Browse files
committed
Disable clang-tidy check in some cases
Although "using namespace" is generally to be avoided, there are cases where it is really useful and not much of a problem. These are these cases.
1 parent c3eb0fb commit 0bb8ca5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/format.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
#define FMT_HEADER_ONLY
1414
#include <fmt/format.h>
1515

16-
using namespace fmt::literals;
16+
using namespace fmt::literals; // NOLINT(google-global-names-in-headers)
1717

1818
#endif // OSM2PGSQL_FORMAT_HPP

src/middle-ram.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ bool middle_ram_t::way_get(osmid_t id, osmium::memory::Buffer *buffer) const
8383
return false;
8484
}
8585

86+
// NOLINTNEXTLINE(google-build-using-namespace)
8687
using namespace osmium::builder::attr;
8788
osmium::builder::add_way(*buffer, _id(id), _tags(ele->tags),
8889
_nodes(ele->ndids));
@@ -120,6 +121,7 @@ bool middle_ram_t::relation_get(osmid_t id,
120121
return false;
121122
}
122123

124+
// NOLINTNEXTLINE(google-build-using-namespace)
123125
using namespace osmium::builder::attr;
124126
osmium::builder::add_relation(*buffer, _id(id),
125127
_members(ele->members.for_builder()),

0 commit comments

Comments
 (0)