Skip to content

Commit

Permalink
Add google-build-using-namespace check
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Oct 13, 2024
1 parent d309c0e commit d5774f4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ cppcoreguidelines-*,
-cppcoreguidelines-rvalue-reference-param-not-moved,
-cppcoreguidelines-special-member-functions,
google-*,
-google-build-using-namespace,
-google-explicit-constructor,
-google-readability-casting,
-google-readability-todo,
Expand Down
2 changes: 0 additions & 2 deletions include/ddc/detail/tagged_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,13 @@ class TaggedVector : public TaggedVectorConversionOperators<TaggedVector<Element
template <class QueryTag>
KOKKOS_FUNCTION constexpr ElementType& get() noexcept
{
using namespace detail;
static_assert(in_tags_v<QueryTag, tags_seq>, "requested Tag absent from TaggedVector");
return m_values[type_seq_rank_v<QueryTag, tags_seq>];
}

template <class QueryTag>
KOKKOS_FUNCTION constexpr ElementType const& get() const noexcept
{
using namespace detail;
static_assert(in_tags_v<QueryTag, tags_seq>, "requested Tag absent from TaggedVector");
return m_values[type_seq_rank_v<QueryTag, tags_seq>];
}
Expand Down
2 changes: 0 additions & 2 deletions include/ddc/discrete_element.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,13 @@ class DiscreteElement
template <class QueryTag>
KOKKOS_FUNCTION constexpr value_type& uid() noexcept
{
using namespace detail;
static_assert(in_tags_v<QueryTag, tags_seq>, "requested Tag absent from DiscreteElement");
return m_values[type_seq_rank_v<QueryTag, tags_seq>];
}

template <class QueryTag>
KOKKOS_FUNCTION constexpr value_type const& uid() const noexcept
{
using namespace detail;
static_assert(in_tags_v<QueryTag, tags_seq>, "requested Tag absent from DiscreteElement");
return m_values[type_seq_rank_v<QueryTag, tags_seq>];
}
Expand Down
2 changes: 0 additions & 2 deletions include/ddc/discrete_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,13 @@ class DiscreteVector : public detail::DiscreteVectorConversionOperators<Discrete
template <class QueryTag>
KOKKOS_FUNCTION constexpr DiscreteVectorElement& get() noexcept
{
using namespace detail;
static_assert(in_tags_v<QueryTag, tags_seq>, "requested Tag absent from DiscreteVector");
return m_values[type_seq_rank_v<QueryTag, tags_seq>];
}

template <class QueryTag>
KOKKOS_FUNCTION constexpr DiscreteVectorElement const& get() const noexcept
{
using namespace detail;
static_assert(in_tags_v<QueryTag, tags_seq>, "requested Tag absent from DiscreteVector");
return m_values[type_seq_rank_v<QueryTag, tags_seq>];
}
Expand Down

0 comments on commit d5774f4

Please sign in to comment.