[PATCH] D125961: [clang-format] Don't break lines after pragma region

Tobias Hieta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 19 22:57:41 PDT 2022


thieta added a comment.

In D125961#3526347 <https://reviews.llvm.org/D125961#3526347>, @wanders wrote:

> There are other pragmas which include colon. How do they fare?
>
> Example https://docs.microsoft.com/en-us/cpp/preprocessor/warning?view=msvc-170
>
>   #pragma warning( disable : 4507 34; once : 4385; error : 164 )

I checked this and added an additional test to test for this. It works fine without any changes - I think the difference is when there is a additional token between pragma and the "text".


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125961/new/

https://reviews.llvm.org/D125961



More information about the cfe-commits mailing list