Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang-tidy] NO.26 enable misc-unused-using-decls #61616

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
#include "paddle/fluid/platform/profiler/event_python.h"

using paddle::framework::AttributeMap;
using paddle::platform::CudaRuntimeTraceEventNode;
using paddle::platform::DeserializationReader;
using paddle::platform::DeviceTraceEvent;
using paddle::platform::DeviceTraceEventNode;
using paddle::platform::HostTraceEvent;
using paddle::platform::HostTraceEventNode;
using paddle::platform::KernelEventInfo;
Expand All @@ -32,7 +30,6 @@ using paddle::platform::MemsetEventInfo;
using paddle::platform::MemTraceEvent;
using paddle::platform::NodeTrees;
using paddle::platform::OperatorSupplementEvent;
using paddle::platform::ProfilerResult;
using paddle::platform::RuntimeTraceEvent;
using paddle::platform::SerializationLogger;
using paddle::platform::TracerEventType;
Expand Down
2 changes: 0 additions & 2 deletions paddle/phi/infermeta/spmd_rules/concat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ limitations under the License. */
namespace phi {
namespace distributed {

using phi::distributed::auto_parallel::str_join;

std::tuple<std::string, std::string> FillConcatNotation(int64_t n_axis,
int64_t concat_axis) {
PADDLE_ENFORCE_GT(
Expand Down
3 changes: 0 additions & 3 deletions paddle/phi/kernels/cpu/multiclass_nms3_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

namespace phi {

using phi::funcs::gpc_free_polygon;
using phi::funcs::gpc_polygon_clip;

template <class T>
class Point_ {
public:
Expand Down
1 change: 0 additions & 1 deletion paddle/phi/kernels/onednn/matmul_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ using dnnl::engine;
using dnnl::inner_product_forward;
using dnnl::memory;
using dnnl::prop_kind;
using phi::ReshapeToMatrix;

namespace phi {

Expand Down
2 changes: 0 additions & 2 deletions test/cpp/auto_parallel/dist_attr_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ namespace phi {
namespace distributed {
namespace auto_parallel {

using paddle::framework::BlockDesc;
using paddle::framework::OpDesc;
using paddle::framework::ProgramDesc;
using paddle::framework::VarDesc;

Expand Down