Skip to content

Conversation

@dklimkin
Copy link
Member

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Aug 28, 2024

@llvm/pr-subscribers-clang-format

Author: Danial Klimkin (dklimkin)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/106398.diff

1 Files Affected:

  • (modified) clang/tools/clang-format/clang-format-test.el (+5-5)
diff --git a/clang/tools/clang-format/clang-format-test.el b/clang/tools/clang-format/clang-format-test.el
index 41df1a9ca68af4..667d606b4f238d 100644
--- a/clang/tools/clang-format/clang-format-test.el
+++ b/clang/tools/clang-format/clang-format-test.el
@@ -58,16 +58,16 @@
        (should-not delete)
        (should-not display)
        (should (equal args
-                      '("-output-replacements-xml" "-assume-filename" "foo.cpp"
-                        "-fallback-style" "none"
+                      '("--output-replacements-xml" "--assume-filename" "foo.cpp"
+                        "--fallback-style" "none"
                         ;; Beginning of buffer, no byte-order mark.
-                        "-offset" "0"
+                        "--offset" "0"
                         ;; We have two lines with 2×2 bytes for the umlauts,
                         ;; 1 byte for the line ending, and 3 bytes for the
                         ;; other ASCII characters each.
-                        "-length" "16"
+                        "--length" "16"
                         ;; Length of a single line (without line ending).
-                        "-cursor" "7")))))))
+                        "--cursor" "7")))))))
 
 (ert-deftest clang-format-buffer--process-encoding ()
   "Tests that text is sent to the clang-format process in the

@dklimkin dklimkin merged commit 158ba73 into llvm:main Aug 28, 2024
@owenca
Copy link
Contributor

owenca commented Aug 29, 2024

@dklimkin I known this is a trivial fix, but it would be better to request anyone from https://github.com/orgs/llvm/teams/pr-subscribers-clang-format to have a look before merging it.

There was an outstanding PR #106305 before yours. Can you review it and see if you want to ask the author to close it?

@dklimkin dklimkin deleted the emacs branch August 29, 2024 14:55
@dklimkin
Copy link
Member Author

Race condition! Will update the other PR.

@owenca
Copy link
Contributor

owenca commented Nov 2, 2024

Race condition! Will update the other PR.

@dklimkin can you link to "the other PR"? Should we revert this one now?

cc @mydeveloperday @HazardyKnusperkeks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants