]> granicus.if.org Git - clang/commit
clang-format: fix fallback style set to "none" not always formatting
authorAntonio Maiorano <amaiorano@gmail.com>
Fri, 20 Jan 2017 01:22:42 +0000 (01:22 +0000)
committerAntonio Maiorano <amaiorano@gmail.com>
Fri, 20 Jan 2017 01:22:42 +0000 (01:22 +0000)
commitb19e13dd783262f81c5cf2384966ac0631626913
tree3090013f0d46ea6b327bfaf2bab8d15bc94f4712
parentbb7141bb2c2257023780e11535cfb649b842216f
clang-format: fix fallback style set to "none" not always formatting

This fixes clang-format not formatting if fallback-style is explicitly set to
"none", and either a config file is found or YAML is passed in without a
"BasedOnStyle". With this change, passing "none" in these cases will have no
affect, and LLVM style will be used as the base style.

Differential Revision: https://reviews.llvm.org/D28844

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292562 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
test/Format/style-on-command-line.cpp
unittests/Format/FormatTest.cpp