[ClangFormat] 'try' of function-try-block doesn't obey BraceWrapping
authorOwen Pan <owenpiano@gmail.com>
Fri, 28 Sep 2018 09:17:00 +0000 (09:17 +0000)
committerOwen Pan <owenpiano@gmail.com>
Fri, 28 Sep 2018 09:17:00 +0000 (09:17 +0000)
commitcb5ffbed714778667cdded482a447777cd22ae57
treeecac136bf1dc6dc46c1d13e0a0367c247f541f3c
parent47a8980afada53e4ed206854ffc1073a485dd9c3
[ClangFormat] 'try' of function-try-block doesn't obey BraceWrapping

It should respond to AfterFunction, not AfterControlStatement.

Fixes PR39067

llvm-svn: 343305
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp