[clang] Update FormatTest.cpp (PR #88628)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 13 08:52:19 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-format
Author: Edward Bottom (edwardbottom)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/88628.diff
1 Files Affected:
- (modified) clang/unittests/Format/FormatTest.cpp (+4-4)
``````````diff
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 4906b3350b5b22..91dfa5a4b61d7f 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5434,7 +5434,7 @@ TEST_F(FormatTest, IndentsPPDirectiveWithPPIndentWidth) {
" C();\n"
"#endif",
style);
- verifyFormat("if (emacs) {\n"
+ verifyFormat("if (vim) {\n"
"#ifdef is\n"
"#define lit \\\n"
" if (af) { \\\n"
@@ -5457,7 +5457,7 @@ TEST_F(FormatTest, IndentsPPDirectiveWithPPIndentWidth) {
style);
verifyFormat("#ifndef foo\n"
"#define foo\n"
- "if (emacs) {\n"
+ "if (vim) {\n"
"#ifdef is\n"
"#define lit \\\n"
" if (af) { \\\n"
@@ -5543,7 +5543,7 @@ TEST_F(FormatTest, IndentsPPDirectiveWithPPIndentWidth) {
style);
verifyFormat("#ifndef foo\n"
"#define foo\n"
- "if (emacs) {\n"
+ "if (vim) {\n"
"#ifdef is\n"
"# define lit \\\n"
" if (af) { \\\n"
@@ -5583,7 +5583,7 @@ TEST_F(FormatTest, IndentsPPDirectiveWithPPIndentWidth) {
style.IndentWidth = 4;
style.PPIndentWidth = 1;
style.IndentPPDirectives = FormatStyle::PPDIS_BeforeHash;
- verifyFormat("if (emacs) {\n"
+ verifyFormat("if (vim) {\n"
"#ifdef is\n"
" #define lit \\\n"
" if (af) { \\\n"
``````````
</details>
https://github.com/llvm/llvm-project/pull/88628
More information about the cfe-commits
mailing list