Skip to content

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

Align .clang-format configuration in the repository (#30708)

Arseniy Obolenskiy77a896651938
diff --git a/docs/.clang-format b/docs/.clang-format
index ebe747b7838..d4de26be100 100644
--- a/docs/.clang-format
+++ b/docs/.clang-format
@@ -23,6 +23,7 @@ DerivePointerAlignment: false
FixNamespaceComments: true
IndentCaseLabels: false
IndentPPDirectives: AfterHash
+QualifierAlignment: Left
ForEachMacros:
- foreach
- FOREACH_CHILD
diff --git a/samples/c/.clang-format b/samples/c/.clang-format
index ebe747b7838..d4de26be100 100644
--- a/samples/c/.clang-format
+++ b/samples/c/.clang-format
@@ -23,6 +23,7 @@ DerivePointerAlignment: false
FixNamespaceComments: true
IndentCaseLabels: false
IndentPPDirectives: AfterHash
+QualifierAlignment: Left
ForEachMacros:
- foreach
- FOREACH_CHILD
diff --git a/samples/cpp/.clang-format b/samples/cpp/.clang-format
index ebe747b7838..d4de26be100 100644
--- a/samples/cpp/.clang-format
+++ b/samples/cpp/.clang-format
@@ -23,6 +23,7 @@ DerivePointerAlignment: false
FixNamespaceComments: true
IndentCaseLabels: false
IndentPPDirectives: AfterHash
+QualifierAlignment: Left
ForEachMacros:
- foreach
- FOREACH_CHILD
diff --git a/src/bindings/python/.clang-format b/src/bindings/python/.clang-format
deleted file mode 100644
index ebe747b7838..00000000000
--- a/src/bindings/python/.clang-format
+++ /dev/null
@@ -1,28 +0,0 @@
-BasedOnStyle: Google
-IndentWidth: 4
-UseTab: Never
-ColumnLimit: 120
-
-Language: Cpp
-Standard: Cpp11
-
-AccessModifierOffset: -4
-AlignConsecutiveMacros: true
-AllowAllArgumentsOnNextLine: false
-AllowAllConstructorInitializersOnNextLine: false
-AllowAllParametersOfDeclarationOnNextLine: false
-AllowShortFunctionsOnASingleLine: Empty
-AllowShortIfStatementsOnASingleLine: Never
-AllowShortLambdasOnASingleLine: Empty
-AllowShortLoopsOnASingleLine: false
-AlwaysBreakBeforeMultilineStrings: false
-BinPackArguments: false
-BinPackParameters: false
-CommentPragmas: '^#'
-DerivePointerAlignment: false
-FixNamespaceComments: true
-IndentCaseLabels: false
-IndentPPDirectives: AfterHash
-ForEachMacros:
- - foreach
- - FOREACH_CHILD
diff --git a/src/plugins/intel_cpu/tests/unit/shape_inference_test/.clang-format b/src/plugins/intel_cpu/tests/unit/shape_inference_test/.clang-format
deleted file mode 100644
index ebe747b7838..00000000000
--- a/src/plugins/intel_cpu/tests/unit/shape_inference_test/.clang-format
+++ /dev/null
@@ -1,28 +0,0 @@
-BasedOnStyle: Google
-IndentWidth: 4
-UseTab: Never
-ColumnLimit: 120
-
-Language: Cpp
-Standard: Cpp11
-
-AccessModifierOffset: -4
-AlignConsecutiveMacros: true
-AllowAllArgumentsOnNextLine: false
-AllowAllConstructorInitializersOnNextLine: false
-AllowAllParametersOfDeclarationOnNextLine: false
-AllowShortFunctionsOnASingleLine: Empty
-AllowShortIfStatementsOnASingleLine: Never
-AllowShortLambdasOnASingleLine: Empty
-AllowShortLoopsOnASingleLine: false
-AlwaysBreakBeforeMultilineStrings: false
-BinPackArguments: false
-BinPackParameters: false
-CommentPragmas: '^#'
-DerivePointerAlignment: false
-FixNamespaceComments: true
-IndentCaseLabels: false
-IndentPPDirectives: AfterHash
-ForEachMacros:
- - foreach
- - FOREACH_CHILD
diff --git a/src/plugins/intel_gpu/.clang-format b/src/plugins/intel_gpu/.clang-format
index c9c96c02416..087a637382b 100644
--- a/src/plugins/intel_gpu/.clang-format
+++ b/src/plugins/intel_gpu/.clang-format
@@ -23,6 +23,7 @@ DerivePointerAlignment: false
FixNamespaceComments: true
IndentCaseLabels: false
IndentPPDirectives: AfterHash
+QualifierAlignment: Left
ForEachMacros:
- foreach
- FOREACH_CHILD
diff --git a/tests/appverifier_tests/.clang-format b/tests/appverifier_tests/.clang-format
index ebe747b7838..d4de26be100 100644
--- a/tests/appverifier_tests/.clang-format
+++ b/tests/appverifier_tests/.clang-format
@@ -23,6 +23,7 @@ DerivePointerAlignment: false
FixNamespaceComments: true
IndentCaseLabels: false
IndentPPDirectives: AfterHash
+QualifierAlignment: Left
ForEachMacros:
- foreach
- FOREACH_CHILD