[clang-format] Propagate inferred language to getLLVMStyle() in getPredefinedStyle()
authorJordan Rupprecht <rupprecht@google.com>
Wed, 13 Mar 2019 21:13:01 +0000 (21:13 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Wed, 13 Mar 2019 21:13:01 +0000 (21:13 +0000)
commit55881d5def969c9e41fca87b51018d470340a888
tree71c7eef5e2bf3d34976c97da6600c53a067f453e
parentab41ea6282a75c3ece5cef037ced75f3f7acc724
[clang-format] Propagate inferred language to getLLVMStyle() in getPredefinedStyle()

rC355158 added an optional language parameter to getLLVMStyle(), but this parameter was not used in getPredefinedStyle(). Because unit tests directly specify the style, this codepath wasn't tested. Add an additional unit test for getStyle().

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