[all-commits] [llvm/llvm-project] 749fb3: [clang-format] Don't break lines after pragma region
Tobias Hieta via All-commits
all-commits at lists.llvm.org
Fri May 20 07:11:36 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 749fb33e82ff19d656af9c9205f3ac81c1ce52d8
https://github.com/llvm/llvm-project/commit/749fb33e82ff19d656af9c9205f3ac81c1ce52d8
Author: Tobias Hieta <tobias.hieta at ubisoft.com>
Date: 2022-05-20 (Fri, 20 May 2022)
Changed paths:
M clang/lib/Format/FormatToken.h
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Don't break lines after pragma region
We have autogenerated pragma regions in our code
which where awkwardly broken up like this:
```
#pragma region foo(bar : hello)
```
becomes
```
#pragma region foo(bar \
: hello)
```
This fixes the problem by adding region as a keyword
and handling it the same way as pragma mark
Reviewed By: curdeius
Differential Revision: https://reviews.llvm.org/D125961
More information about the All-commits
mailing list