Skip to content

fix format

fix format #25636

Triggered via push November 24, 2023 17:45
Status Success
Total duration 22s
Artifacts
Validation
14s
Validation
Fit to window
Zoom out
Zoom in

Annotations

160 warnings
[cpplint] onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.cc#L8: onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.cc#L8
Include the directory when naming header files [build/include_subdir] [4]
[cpplint] onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.cc#L191: onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.cc#L191
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]
[cpplint] onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L14: onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L14
For a static/global string constant, use a C style string instead: "static const char EPCONTEXT_OP[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L15: onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L15
For a static/global string constant, use a C style string instead: "static const char EMBED_MODE[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L16: onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L16
For a static/global string constant, use a C style string instead: "static const char EP_CACHE_CONTEXT[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L17: onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L17
For a static/global string constant, use a C style string instead: "static const char COMPUTE_CAPABILITY[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L18: onnxruntime/core/providers/tensorrt/onnx_ctx_model_helper.h#L18
For a static/global string constant, use a C style string instead: "static const char EPCONTEXT_OP_DOMAIN[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L1482: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L1482
Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2497: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2497
Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2882: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2882
If an else has a brace on one side, it should have it on both [readability/braces] [5]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3032: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3032
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3223: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3223
Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3320: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3320
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3716: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3716
Small and focused functions are preferred: TensorrtExecutionProvider::CreateNodeComputeFromGraph() has 771 non-comment lines (error triggered by exceeding 500 lines). [readability/fn_size] [1]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h#L49: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h#L49
For a static/global string constant, use a C style string instead: "static const char kDumpEpContextModel[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h#L50: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h#L50
For a static/global string constant, use a C style string instead: "static const char kEpContextEmbedMode[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h#L51: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h#L51
For a static/global string constant, use a C style string instead: "static const char kEpContextComputeCapabilityEnable[]". [runtime/string] [4]
[cpplint] onnxruntime/core/session/custom_ops.cc#L314: onnxruntime/core/session/custom_ops.cc#L314
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/core/session/custom_ops.cc#L317: onnxruntime/core/session/custom_ops.cc#L317
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/core/session/ort_apis.h#L187: onnxruntime/core/session/ort_apis.h#L187
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/core/session/provider_bridge_ort.cc#L451: onnxruntime/core/session/provider_bridge_ort.cc#L451
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/core/session/provider_bridge_ort.cc#L475: onnxruntime/core/session/provider_bridge_ort.cc#L475
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/python/onnxruntime_pybind_state.cc#L726: onnxruntime/python/onnxruntime_pybind_state.cc#L726
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/python/onnxruntime_pybind_state.cc#L732: onnxruntime/python/onnxruntime_pybind_state.cc#L732
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/python/onnxruntime_pybind_state.cc#L740: onnxruntime/python/onnxruntime_pybind_state.cc#L740
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/test/providers/cpu/nn/dropout_op_test.cc#L33: onnxruntime/test/providers/cpu/nn/dropout_op_test.cc#L33
Lines should be <= 120 characters long [whitespace/line_length] [2]