[clang-tidy] Add support for custom configuration file names/formats.
authorAlexander Kornienko <alexfh@google.com>
Mon, 20 Oct 2014 12:29:15 +0000 (12:29 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 20 Oct 2014 12:29:15 +0000 (12:29 +0000)
commit4f6b06673d5421f8d4e5299b7c7cd62103c09ac0
tree9e0b5c921f3066344d09be26579cd6eced2d39ac
parent748627cc2ad844954034cb2c188ec971482d9380
[clang-tidy] Add support for custom configuration file names/formats.

Summary: We're using different clang-tidy frontends (command-line, batch analysis jobs, code review integration), some of which are limited in the choice of configuration format. In order to avoid duplication of configuration information, we need to support the same configuration format in the command-line tool. This patch adds an extension point to make this possible without rewriting FileOptionsProvider.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D5821

llvm-svn: 220199
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
clang-tools-extra/clang-tidy/ClangTidyOptions.h