[clang] [Clang Format] Fixing erroneous statements in tests; nsc (PR #88628)

2024-04-13 Thread Edward Bottom via cfe-commits

https://github.com/edwardbottom edited 
https://github.com/llvm/llvm-project/pull/88628
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-04-13 Thread Edward Bottom via cfe-commits

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+edwardbot...@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"

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits