[clang-tidy] Make format style customizable
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 30 Nov 2016 18:06:42 +0000 (18:06 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 30 Nov 2016 18:06:42 +0000 (18:06 +0000)
commit7319184946fe9e43647c67ebe3f80be43941b331
treeac6fc13a4fe743e9a963099083a9e09e0595afee
parent30ed5467a476e5f09efaf1a11f1d971f05f18adf
[clang-tidy] Make format style customizable

Summary: I came across an outstanding FIXME to make the format style customizable. Inspired by the include fixer, I added an new option `-style` to configure the fallback style in case no clang-format configuration file is found. The default remains "llvm".

Reviewers: Prazek, aaron.ballman, hokein, alexfh

Subscribers: cfe-commits, malcolm.parsons

Tags: #clang-tools-extra

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

llvm-svn: 288258
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidy.h
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/docs/clang-tidy/index.rst