Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU][CLANG-TIDY] Enable google-readability-namespace-comments (#37037)

Nesterov Alexander7086927edc92
diff --git a/src/plugins/intel_gpu/.clang-tidy b/src/plugins/intel_gpu/.clang-tidy
index 126e104760c..8701199a113 100644
--- a/src/plugins/intel_gpu/.clang-tidy
+++ b/src/plugins/intel_gpu/.clang-tidy
@@ -8,6 +8,7 @@
Checks: >
-*,
modernize-use-override,
+ google-readability-namespace-comments,
readability-redundant-member-init,
readability-redundant-string-init,
readability-redundant-control-flow,
@@ -27,4 +28,8 @@ HeaderFilterRegex: "src/plugins/intel_gpu/(include|src)/.*\\.(h|hpp)$"
CheckOptions:
- key: modernize-use-override.AllowOverrideAndFinal
value: true
+ - key: google-readability-namespace-comments.ShortNamespaceLines
+ value: 10
+ - key: google-readability-namespace-comments.SpacesBeforeComments
+ value: 2
---
diff --git a/src/plugins/intel_gpu/include/intel_gpu/graph/serialization/weights_reorder_params.hpp b/src/plugins/intel_gpu/include/intel_gpu/graph/serialization/weights_reorder_params.hpp
index 7d1c064f6b7..a97dc61e016 100644
--- a/src/plugins/intel_gpu/include/intel_gpu/graph/serialization/weights_reorder_params.hpp
+++ b/src/plugins/intel_gpu/include/intel_gpu/graph/serialization/weights_reorder_params.hpp
@@ -99,6 +99,6 @@ namespace cldnn {
_out_desc = std::make_shared<dnnl::memory::desc>(out);
}
};
- }
+ } // namespace onednn
#endif
-}
+} // namespace cldnn
diff --git a/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_gather.hpp b/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_gather.hpp
index e09f71a4941..1702b9bcde8 100644
--- a/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_gather.hpp
+++ b/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_gather.hpp
@@ -57,4 +57,4 @@ struct moe_gather : public primitive_base<moe_gather> {
ib >> has_batch_dim;
}
};
-}
+} // namespace cldnn
diff --git a/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_gemm.hpp b/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_gemm.hpp
index ab1eb905f9c..d29fac65357 100644
--- a/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_gemm.hpp
+++ b/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_gemm.hpp
@@ -80,4 +80,4 @@ struct moe_gemm : public primitive_base<moe_gemm> {
ib >> has_batch_dim;
}
};
-}
+} // namespace cldnn
diff --git a/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_mask_gen.hpp b/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_mask_gen.hpp
index 772e5847670..ddcc3899656 100644
--- a/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_mask_gen.hpp
+++ b/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_mask_gen.hpp
@@ -133,4 +133,4 @@ struct moe_mask_gen_reshape : public primitive_base<moe_mask_gen_reshape> {
}
};
-}
+} // namespace cldnn
diff --git a/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_scatter_reduction.hpp b/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_scatter_reduction.hpp
index dfe793bc88b..94a1819d5a3 100644
--- a/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_scatter_reduction.hpp
+++ b/src/plugins/intel_gpu/include/intel_gpu/primitives/moe_scatter_reduction.hpp
@@ -77,5 +77,5 @@ struct moe_scatter_reduction : public primitive_base<moe_scatter_reduction> {
ib >> onednn_grouped_gemm_used;
}
};
-}
+} // namespace cldnn