Skip to content

Commit f5a7858

Browse files
committed
[CI] Update clang-format version to 18
1 parent 51b00a6 commit f5a7858

File tree

121 files changed

+382
-331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+382
-331
lines changed

.github/workflows/code_style.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions: read-all
99

1010
jobs:
1111
clang-format:
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
if: ${{ github.repository_owner == 'openvinotoolkit' }}
1414
permissions:
1515
pull-requests: write
@@ -19,10 +19,10 @@ jobs:
1919
with:
2020
submodules: 'true'
2121

22-
- name: Install clang-format-15
22+
- name: Install clang-format-18
2323
run: |
2424
sudo apt update
25-
sudo apt --assume-yes install clang-format-15
25+
sudo apt --assume-yes install clang-format-18
2626
2727
# Run cmake with extra options to cover as much source code as possible:
2828
# - -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT to enable codestyle check for ITT collector
@@ -46,7 +46,7 @@ jobs:
4646
"./temp/*"
4747
4848
clang-format-aarch64:
49-
runs-on: ubuntu-22.04
49+
runs-on: ubuntu-24.04
5050
if: ${{ github.repository_owner == 'openvinotoolkit' }}
5151
permissions:
5252
pull-requests: write
@@ -55,10 +55,10 @@ jobs:
5555
with:
5656
submodules: 'true'
5757

58-
- name: Install clang-format-15 and cross-compilation dependencies
58+
- name: Install clang-format-18 and cross-compilation dependencies
5959
run: |
6060
sudo apt update
61-
sudo apt --assume-yes install binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu scons clang-format-15
61+
sudo apt --assume-yes install binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu scons clang-format-18
6262
6363
# Run cmake with extra options to cover as much source code as possible:
6464
# - -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT to enable codestyle check for ITT collector
@@ -82,7 +82,7 @@ jobs:
8282
"./temp/*"
8383
8484
clang-format-riscv64:
85-
runs-on: ubuntu-22.04
85+
runs-on: ubuntu-24.04
8686
if: ${{ github.repository_owner == 'openvinotoolkit' }}
8787
permissions:
8888
pull-requests: write
@@ -91,10 +91,10 @@ jobs:
9191
with:
9292
submodules: 'true'
9393

94-
- name: Install clang-format-15 and cross-compilation dependencies
94+
- name: Install clang-format-18 and cross-compilation dependencies
9595
run: |
9696
sudo apt update
97-
sudo apt --assume-yes install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu binutils-riscv64-linux-gnu clang-format-15
97+
sudo apt --assume-yes install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu binutils-riscv64-linux-gnu clang-format-18
9898
9999
# Run cmake with extra options to cover as much source code as possible:
100100
# - -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT to enable codestyle check for ITT collector

cmake/developer_package/clang_format/clang_format.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
#
44

55
if(ENABLE_CLANG_FORMAT)
6-
set(CLANG_FORMAT_REQUIRED_VERSION 15 CACHE STRING "Clang-format version to use")
6+
set(CLANG_FORMAT_REQUIRED_VERSION 18 CACHE STRING "Clang-format version to use")
77
set(CLANG_FORMAT_FILENAME clang-format-${CLANG_FORMAT_REQUIRED_VERSION} clang-format)
88
find_host_program(CLANG_FORMAT NAMES ${CLANG_FORMAT_FILENAME} PATHS ENV PATH)
9+
message(STATUS "Found clang-format: ${CLANG_FORMAT}")
910
if(CLANG_FORMAT)
1011
execute_process(COMMAND ${CLANG_FORMAT} ${CMAKE_CURRENT_SOURCE_DIR} ARGS --version OUTPUT_VARIABLE CLANG_VERSION)
1112
if(NOT CLANG_VERSION)

docs/dev/coding_style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## Coding style
44

5-
The majority of OpenVINO components use `clang-format-9` for code style check.
5+
The majority of OpenVINO components use `clang-format-18` for code style check.
66

77
The code style is based on the Google Code style with some differences. All the differences are described in the configuration file:
88
https://github.com/openvinotoolkit/openvino/blob/69f709028a5f8da596d1d0df9a0101e517c35708/src/.clang-format#L1-L28
99

10-
To fix the code style on your local machine, you need to install the `clang-format-9` tool and make sure that the CMake option `ENABLE_CLANG_FORMAT` is enabled.
10+
To fix the code style on your local machine, you need to install the `clang-format-18` tool and make sure that the CMake option `ENABLE_CLANG_FORMAT` is enabled.
1111
If all dependencies are resolved, you can use the `clang_format_fix_all` target to fix all code style issues.
1212

1313
## Naming style

samples/cpp/common/utils/include/samples/common.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,7 @@ static UNUSED void printPerformanceCountsSort(std::vector<ov::ProfilingInfo> per
563563
stream << "layerType: ";
564564
if (it.node_type.length() >= maxPrintLength) {
565565
stream << std::setw(maxPrintLength) << std::left
566-
<< it.node_type.substr(0, maxPrintLength - 3) + "..."
567-
<< " ";
566+
<< it.node_type.substr(0, maxPrintLength - 3) + "..." << " ";
568567
} else {
569568
stream << std::setw(maxPrintLength) << std::left << it.node_type << " ";
570569
}

samples/cpp/common/utils/include/samples/os/windows/w_dirent.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
// clang-format on
4242

4343
// Copied from linux libc sys/stat.h:
44-
# define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
45-
# define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
44+
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
45+
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
4646

4747
/// @brief structure to store directory names
4848
struct dirent {

src/bindings/js/node/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ all checks have passed. CI checks are composed of both functional tests and code
4343

4444
Remember to follow [our codestyle](../docs/CODESTYLE.md).
4545
By following the provided guide and using an automotive code style checking tool, like
46-
**eslint** and **clang-format-9**, you will save some time and help with the code review of proposed changes.
46+
**eslint** and **clang-format-18**, you will save some time and help with the code review of proposed changes.
4747

4848

4949
## Description of the Pull Request

src/bindings/js/node/src/preprocess/input_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "node/include/preprocess/input_tensor_info.hpp"
99
#include "node/include/preprocess/preprocess_steps.hpp"
1010

11-
InputInfo::InputInfo(const Napi::CallbackInfo& info) : Napi::ObjectWrap<InputInfo>(info), _input_info(nullptr){};
11+
InputInfo::InputInfo(const Napi::CallbackInfo& info) : Napi::ObjectWrap<InputInfo>(info), _input_info(nullptr) {};
1212

1313
Napi::Function InputInfo::get_class_constructor(Napi::Env env) {
1414
return DefineClass(env,

src/bindings/js/node/src/preprocess/input_model_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
InputModelInfo::InputModelInfo(const Napi::CallbackInfo& info)
1010
: Napi::ObjectWrap<InputModelInfo>(info),
11-
_model_info(nullptr){};
11+
_model_info(nullptr) {};
1212

1313
Napi::Function InputModelInfo::get_class_constructor(Napi::Env env) {
1414
return DefineClass(env, "InputModelInfo", {InstanceMethod("setLayout", &InputModelInfo::set_layout)});

src/bindings/js/node/src/preprocess/input_tensor_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
InputTensorInfo::InputTensorInfo(const Napi::CallbackInfo& info)
1010
: Napi::ObjectWrap<InputTensorInfo>(info),
11-
_tensor_info(nullptr){};
11+
_tensor_info(nullptr) {};
1212

1313
Napi::Function InputTensorInfo::get_class_constructor(Napi::Env env) {
1414
return DefineClass(env,

src/bindings/js/node/src/preprocess/output_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "node/include/errors.hpp"
77
#include "node/include/preprocess/output_tensor_info.hpp"
88

9-
OutputInfo::OutputInfo(const Napi::CallbackInfo& info) : Napi::ObjectWrap<OutputInfo>(info), _output_info(nullptr){};
9+
OutputInfo::OutputInfo(const Napi::CallbackInfo& info) : Napi::ObjectWrap<OutputInfo>(info), _output_info(nullptr) {};
1010

1111
Napi::Function OutputInfo::get_class_constructor(Napi::Env env) {
1212
return DefineClass(env, "OutputInfo", {InstanceMethod("tensor", &OutputInfo::tensor)});

src/bindings/js/node/src/preprocess/output_tensor_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
OutputTensorInfo::OutputTensorInfo(const Napi::CallbackInfo& info)
1010
: Napi::ObjectWrap<OutputTensorInfo>(info),
11-
_tensor_info(nullptr){};
11+
_tensor_info(nullptr) {};
1212

1313
Napi::Function OutputTensorInfo::get_class_constructor(Napi::Env env) {
1414
return DefineClass(env,

src/bindings/js/node/src/preprocess/preprocess_steps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
PreProcessSteps::PreProcessSteps(const Napi::CallbackInfo& info)
77
: Napi::ObjectWrap<PreProcessSteps>(info),
8-
_preprocess_info(nullptr){};
8+
_preprocess_info(nullptr) {};
99

1010
Napi::Function PreProcessSteps::get_class_constructor(Napi::Env env) {
1111
return DefineClass(env, "PreProcessSteps", {InstanceMethod("resize", &PreProcessSteps::resize)});

src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ov::pass::GroupedGatherElimination : public ov::pass::MatcherPass {
4242
class ov::pass::SimplifyShapeOfSubGraph : public ov::pass::ModelPass {
4343
public:
4444
OPENVINO_MODEL_PASS_RTTI("SimplifyShapeOfSubGraph");
45-
explicit SimplifyShapeOfSubGraph(bool use_shapes = true) : m_use_shapes(use_shapes){};
45+
explicit SimplifyShapeOfSubGraph(bool use_shapes = true) : m_use_shapes(use_shapes) {};
4646
bool run_on_model(const std::shared_ptr<ov::Model>& m) override;
4747

4848
private:

src/common/transformations/src/transformations/common_optimizations/lin_op_sequence_fusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const auto is_eltwise_supported_type = [](const Output<Node>& output) -> bool {
2323
const auto is_single_output = pass::pattern::consumers_count(1);
2424
return is_single_output(output) && output.get_node()->has_evaluate();
2525
};
26-
}
26+
} // namespace
2727

2828
ov::pass::AddMultiplyFusion::AddMultiplyFusion() {
2929
MATCHER_SCOPE(AddMultiplyFusion);

src/common/transformations/src/transformations/op_conversions/einsum_decomposition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ ov::pass::EinsumDecomposition::EinsumDecomposition() {
13261326
fix_inputs_with_0d_ellipsis(input_nodes, input_subscripts, output_subscript, subgraph_nodes);
13271327

13281328
// contract inputs by Einsum until just one is remained
1329-
for (auto const& inds_pair : einsum_path) {
1329+
for (const auto& inds_pair : einsum_path) {
13301330
contract_two_inputs(input_nodes,
13311331
input_subscripts,
13321332
output_subscript,

src/common/transformations/tests/utils/compare_functions_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ const auto createU1ConstantFunc = [](const Shape& s, const uint8_t* data) {
675675

676676
return std::make_shared<ov::Model>(OutputVector{c}, ParameterVector{});
677677
};
678-
}
678+
} // namespace
679679

680680
TEST(TransformationTests, ConstantComparison_ElementTypeU1_Positive_1stbit) {
681681
const Shape shape{1};

src/common/util/src/file_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# endif
3838
// Copied from linux libc sys/stat.h:
3939
# if !defined(__MINGW32__) && !defined(__MINGW64__)
40-
# define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
40+
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
4141
# endif
4242
#else
4343
# include <dirent.h>

src/core/include/openvino/core/any.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ struct Read;
3838
template <class T>
3939
struct Readable {
4040
template <class U>
41-
static auto test(U*)
42-
-> decltype(std::declval<Read<U>>()(std::declval<std::istream&>(), std::declval<U&>()), std::true_type()) {
41+
static auto test(U*) -> decltype(std::declval<Read<U>>()(std::declval<std::istream&>(), std::declval<U&>()),
42+
std::true_type()) {
4343
return {};
4444
}
4545
template <typename>

src/core/include/openvino/core/extension.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ void OV_CREATE_EXTENSION(std::vector<ov::Extension::Ptr>& ext);
5050
*
5151
* @param ext of extensions
5252
*/
53-
#define OPENVINO_CREATE_EXTENSIONS(extensions) \
54-
OPENVINO_EXTENSION_C_API void OV_CREATE_EXTENSION(std::vector<ov::Extension::Ptr>& ext); \
55-
OPENVINO_EXTENSION_C_API void OV_CREATE_EXTENSION(std::vector<ov::Extension::Ptr>& ext) { ext = extensions; }
53+
#define OPENVINO_CREATE_EXTENSIONS(extensions) \
54+
OPENVINO_EXTENSION_C_API void OV_CREATE_EXTENSION(std::vector<ov::Extension::Ptr>& ext); \
55+
OPENVINO_EXTENSION_C_API void OV_CREATE_EXTENSION(std::vector<ov::Extension::Ptr>& ext) { \
56+
ext = extensions; \
57+
}

src/core/include/openvino/core/rtti.hpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
type_info_static.hash(); \
2020
return type_info_static; \
2121
} \
22-
const ::ov::DiscreteTypeInfo& get_type_info() const override { return get_type_info_static(); }
22+
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
23+
return get_type_info_static(); \
24+
}
2325

2426
#define _OPENVINO_RTTI_WITH_TYPE_VERSION_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS) \
2527
_OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS)
@@ -32,7 +34,9 @@
3234
type_info_static.hash(); \
3335
return type_info_static; \
3436
} \
35-
const ::ov::DiscreteTypeInfo& get_type_info() const override { return get_type_info_static(); }
37+
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
38+
return get_type_info_static(); \
39+
}
3640

3741
/// Helper macro that puts necessary declarations of RTTI block inside a class definition.
3842
/// Should be used in the scope of class that requires type identification besides one provided by
@@ -100,7 +104,9 @@
100104
type_info_static.hash(); \
101105
return type_info_static; \
102106
} \
103-
virtual const ::ov::DiscreteTypeInfo& get_type_info() const { return get_type_info_static(); }
107+
virtual const ::ov::DiscreteTypeInfo& get_type_info() const { \
108+
return get_type_info_static(); \
109+
}
104110

105111
/// Helper macro for base (without rtti parrent) class that provides RTTI block definition.
106112
/// It's a two parameter version of OPENVINO_RTTI macro, without PARENT_CLASS.

src/core/include/openvino/core/type/bfloat16.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@ namespace ov {
2020
class OPENVINO_API bfloat16 {
2121
public:
2222
bfloat16() = default;
23-
bfloat16(float value) : m_value {
23+
bfloat16(float value)
24+
: m_value{
2425
#if defined ROUND_MODE_TO_NEAREST
25-
round_to_nearest(value)
26+
round_to_nearest(value)
2627
#elif defined ROUND_MODE_TO_NEAREST_EVEN
27-
round_to_nearest_even(value)
28+
round_to_nearest_even(value)
2829
#elif defined ROUND_MODE_TRUNCATE
29-
truncate(value)
30+
truncate(value)
3031
#else
3132
# error "ROUNDING_MODE must be one of ROUND_MODE_TO_NEAREST, ROUND_MODE_TO_NEAREST_EVEN, or ROUND_MODE_TRUNCATE"
3233
#endif
34+
} {
3335
}
34-
{}
3536

3637
template <typename I>
3738
explicit bfloat16(I value) : m_value{bfloat16{static_cast<float>(value)}.m_value} {}

src/core/include/openvino/pass/pattern/op/optional.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class OPENVINO_API Optional : public Pattern {
5454
/// \param patterns The pattern to match a graph.
5555
Optional(const std::vector<DiscreteTypeInfo>& type_infos, const OutputVector& inputs = {})
5656
: Pattern(inputs),
57-
optional_types(type_infos){};
57+
optional_types(type_infos) {};
5858

5959
template <typename TPredicate>
6060
Optional(const std::vector<DiscreteTypeInfo>& type_infos, const OutputVector& inputs, const TPredicate& pred)

src/core/reference/src/op/experimental_detectron_roi_feature_extractor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ void ROIAlignForward(const int64_t nthreads,
275275

276276
top_data[index] = output_val;
277277
} // for pw
278-
} // for ph
279-
} // for c
278+
} // for ph
279+
} // for c
280280
}
281281
}
282282
} // namespace

src/core/reference/src/utils/coordinate_index.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ std::size_t coordinate_index(const Coordinate& c, const Shape& s) {
1414
}
1515
std::size_t index = 0;
1616
std::size_t stride = 1;
17-
std::size_t const padding = c.size() - s.size();
17+
const std::size_t padding = c.size() - s.size();
1818

1919
for (std::size_t axis = s.size(); axis-- > 0;) {
2020
if (s[axis] > 1) {

src/core/reference/src/utils/philox_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void PhiloxGenerator::set_operator_seed(const uint64_t op_seed) {
6464
}
6565

6666
// ====== MockPhiloxGenerator functions ======
67-
MockPhiloxGenerator::MockPhiloxGenerator() : PhiloxGenerator(op::PhiloxAlignment::MOCK, 0, 0, {0, 0}){};
67+
MockPhiloxGenerator::MockPhiloxGenerator() : PhiloxGenerator(op::PhiloxAlignment::MOCK, 0, 0, {0, 0}) {};
6868

6969
std::pair<uint64_t, uint64_t> MockPhiloxGenerator::get_next_state() {
7070
return get_previous_state();

src/core/src/itt.hpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ OV_CC_DOMAINS(ov_opset);
5050
# define INSERT_OP(opset_name, op_name, op_namespace) opset.insert<op_namespace::op_name>()
5151
#endif
5252

53-
#define OPENVINO_TYPE_CASE(region, a, ...) \
54-
case ov::element::Type_t::a: { \
55-
OV_SCOPE(ov_op, OV_PP_CAT3(region, _, a)) { rc = evaluate<ov::element::Type_t::a>(__VA_ARGS__); } \
53+
#define OPENVINO_TYPE_CASE(region, a, ...) \
54+
case ov::element::Type_t::a: { \
55+
OV_SCOPE(ov_op, OV_PP_CAT3(region, _, a)) { \
56+
rc = evaluate<ov::element::Type_t::a>(__VA_ARGS__); \
57+
} \
5658
} break
5759

5860
#define OPENVINO_2_TYPES_CASE(region, a, b, ...) \
@@ -62,7 +64,9 @@ OV_CC_DOMAINS(ov_opset);
6264
} \
6365
} break
6466

65-
#define OPENVINO_COPY_TENSOR(region, a, ...) \
66-
case ov::element::Type_t::a: { \
67-
OV_SCOPE(ov_op, OV_PP_CAT3(region, _, a)) { rc = copy_tensor<ov::element::Type_t::a>(__VA_ARGS__); } \
67+
#define OPENVINO_COPY_TENSOR(region, a, ...) \
68+
case ov::element::Type_t::a: { \
69+
OV_SCOPE(ov_op, OV_PP_CAT3(region, _, a)) { \
70+
rc = copy_tensor<ov::element::Type_t::a>(__VA_ARGS__); \
71+
} \
6872
} break

src/core/src/opsets/opset.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ std::string ov::OpSet::to_upper_name(const std::string& name) {
9797

9898
const std::map<std::string, std::function<const ov::OpSet&()>>& ov::get_available_opsets() {
9999
#define _OPENVINO_REG_OPSET(OPSET) \
100-
{ \
101-
# OPSET, ov::get_##OPSET \
102-
}
100+
{ #OPSET, ov::get_##OPSET }
103101
const static std::map<std::string, std::function<const ov::OpSet&()>> opset_map = {_OPENVINO_REG_OPSET(opset1),
104102
_OPENVINO_REG_OPSET(opset2),
105103
_OPENVINO_REG_OPSET(opset3),

src/core/src/pattern/op/predicate.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
namespace ov::pass::pattern {
1010

11-
PatternSymbolValue::PatternSymbolValue() : m_value(){};
12-
PatternSymbolValue::PatternSymbolValue(const std::shared_ptr<ov::Symbol>& s) : m_value(s){};
13-
PatternSymbolValue::PatternSymbolValue(int64_t i) : m_value(i){};
14-
PatternSymbolValue::PatternSymbolValue(double d) : m_value(d){};
15-
PatternSymbolValue::PatternSymbolValue(const std::vector<PatternSymbolValue>& g) : m_value(g){};
11+
PatternSymbolValue::PatternSymbolValue() : m_value() {};
12+
PatternSymbolValue::PatternSymbolValue(const std::shared_ptr<ov::Symbol>& s) : m_value(s) {};
13+
PatternSymbolValue::PatternSymbolValue(int64_t i) : m_value(i) {};
14+
PatternSymbolValue::PatternSymbolValue(double d) : m_value(d) {};
15+
PatternSymbolValue::PatternSymbolValue(const std::vector<PatternSymbolValue>& g) : m_value(g) {};
1616

1717
bool PatternSymbolValue::is_dynamic() const {
1818
return is_valid() && m_value.is<std::shared_ptr<ov::Symbol>>();

0 commit comments

Comments
 (0)