Skip to content

Test: verify clang-format apply_diff fix - #7

Closed
damyanp wants to merge 2 commits into
mainfrom
test-format-fix
Closed

damyanp wants to merge 2 commits into
mainfrom
test-format-fix

Conversation

@damyanp

@damyanp damyanp commented Mar 10, 2026

Copy link
Copy Markdown
Owner

Test PR with a badly formatted C++ file to trigger the clang-format checker workflow and verify the apply_diff security fix.

@github-actions

github-actions Bot commented Mar 10, 2026 •

Copy link
Copy Markdown

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff 9f1703125301ebc7c6f4aca7ee627d2a15caf160 55606c669dd75f85fd850cc22f163da846f89025 -- test-format.cpp
View the diff from clang-format here.
diff --git a/test-format.cpp b/test-format.cpp
index 2705d341..a6ba9b84 100644
--- a/test-format.cpp
+++ b/test-format.cpp
@@ -2,12 +2,12 @@
 #include <stdio.h>
 
 int main() {
-    int x=1;
-    int y =2;
-    if(x==y){
-        printf("equal");
-    }else{
-        printf("not equal");
-    }
-    return 0;
+  int x = 1;
+  int y = 2;
+  if (x == y) {
+    printf("equal");
+  } else {
+    printf("not equal");
+  }
+  return 0;
 }
  • Check this box to apply formatting changes to this branch.

@damyanp damyanp closed this Mar 10, 2026
@damyanp
damyanp deleted the test-format-fix branch March 10, 2026 01:11
damyanp pushed a commit that referenced this pull request Mar 10, 2026
… `vk::SampledTexture2D` type. (microsoft#8158)

Part of microsoft#7979

Support subscriptor indexing `[]` and `.mips[]` for `SampledTexture2D`.


`.sample[]` will not be allowed, as in `Texture2D`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant