[clang] Update FormatTest.cpp (PR #88628)

Edward Bottom via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 13 08:51:33 PDT 2024


https://github.com/edwardbottom created https://github.com/llvm/llvm-project/pull/88628

None

>From 22ae52878602dfc79ab90bbc6e9dea508c3762e2 Mon Sep 17 00:00:00 2001
From: Edward Bottom <31777866+edwardbottom at users.noreply.github.com>
Date: Sat, 13 Apr 2024 08:49:47 -0700
Subject: [PATCH] Update FormatTest.cpp

---
 clang/unittests/Format/FormatTest.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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"



More information about the cfe-commits mailing list