[PATCH] D75410: Fixed Extern Block Indentation in libFormat
Marcus Johnson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 29 12:13:17 PST 2020
MarcusJohnson91 updated this revision to Diff 247457.
MarcusJohnson91 added a comment.
Clang-Formatted UnwrappedLineParser.cpp
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75410/new/
https://reviews.llvm.org/D75410
Files:
clang/lib/Format/UnwrappedLineParser.cpp
Index: clang/lib/Format/UnwrappedLineParser.cpp
===================================================================
--- clang/lib/Format/UnwrappedLineParser.cpp
+++ clang/lib/Format/UnwrappedLineParser.cpp
@@ -1085,10 +1085,12 @@
if (FormatTok->Tok.is(tok::string_literal)) {
nextToken();
if (FormatTok->Tok.is(tok::l_brace)) {
- if (Style.BraceWrapping.AfterExternBlock && Style.BraceWrapping.AfterNamespace) {
+ if (Style.BraceWrapping.AfterExternBlock &&
+ Style.BraceWrapping.AfterNamespace) {
addUnwrappedLine();
parseBlock(/*MustBeDeclaration=*/true);
- } else if (Style.BraceWrapping.AfterExternBlock && Style.BraceWrapping.AfterNamespace == false) {
+ } else if (Style.BraceWrapping.AfterExternBlock &&
+ Style.BraceWrapping.AfterNamespace == false) {
parseBlock(/*MustBeDeclaration=*/false);
} else {
parseBlock(/*MustBeDeclaration=*/true, /*AddLevel=*/false);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75410.247457.patch
Type: text/x-patch
Size: 999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200229/564f040e/attachment.bin>
More information about the cfe-commits
mailing list