]> granicus.if.org Git - clang/commit
clang-format: Allow ternary expressions inside template parameters if
authorDaniel Jasper <djasper@google.com>
Wed, 6 May 2015 14:53:50 +0000 (14:53 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 6 May 2015 14:53:50 +0000 (14:53 +0000)
commit3ab298900808f75821bcd76df166d3e12586e1bc
tree3e7f07a592b21d2f1cbc596e9b2d6cc0a0d14bd9
parent10fc44072e81c6085f90adf8ca59cbaa37ec0ab1
clang-format: Allow ternary expressions inside template parameters if
the template parameters aren't inside an expression context.

This fixes llvm.org/PR23270.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236603 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp