https://github.com/tonykuttai created https://github.com/llvm/llvm-project/pull/201754
This is a formatting-only change to the pragma comment kind `StringSwitch`. A follow-up change needs to add another pragma comment kind to this block. Applying the formatter as part of that functional change would also reformat the existing cases, making the functional diff harder to review. No functional change intended. >From 4d0405c55de0926e168ff8474e18c199e384d423 Mon Sep 17 00:00:00 2001 From: Tony Varghese <[email protected]> Date: Fri, 5 Jun 2026 01:54:13 -0400 Subject: [PATCH] [NFC][clang] Format pragma comment kind StringSwitch --- clang/lib/Parse/ParsePragma.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clang/lib/Parse/ParsePragma.cpp b/clang/lib/Parse/ParsePragma.cpp index cb792e175ee7c..237874de9f8a3 100644 --- a/clang/lib/Parse/ParsePragma.cpp +++ b/clang/lib/Parse/ParsePragma.cpp @@ -3292,13 +3292,13 @@ void PragmaCommentHandler::HandlePragma(Preprocessor &PP, // Verify that this is one of the 5 explicitly listed options. IdentifierInfo *II = Tok.getIdentifierInfo(); PragmaMSCommentKind Kind = - llvm::StringSwitch<PragmaMSCommentKind>(II->getName()) - .Case("linker", PCK_Linker) - .Case("lib", PCK_Lib) - .Case("compiler", PCK_Compiler) - .Case("exestr", PCK_ExeStr) - .Case("user", PCK_User) - .Default(PCK_Unknown); + llvm::StringSwitch<PragmaMSCommentKind>(II->getName()) + .Case("linker", PCK_Linker) + .Case("lib", PCK_Lib) + .Case("compiler", PCK_Compiler) + .Case("exestr", PCK_ExeStr) + .Case("user", PCK_User) + .Default(PCK_Unknown); if (Kind == PCK_Unknown) { PP.Diag(Tok.getLocation(), diag::err_pragma_comment_unknown_kind); return; _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
