llvm-project/clang-tools-extra/test/clang-tidy/infrastructure
Hiral Oza d6a468d622 [clang-tidy] adding "--config-file=<file-path>" to specify custom config file.
Let clang-tidy to read config from specified file.
Example:
$ clang-tidy --config-file=/some/path/myTidyConfig --list-checks --
...this will read config from '/some/path/myTidyConfig'.

ClangTidyMain.cpp reads ConfigFile into string and then assigned read data to 'Config' i.e. makes like '--config' code flow internally.

May speed-up tidy runtime since now it will just look-up <file-path>
instead of searching ".clang-tidy" in parent-dir(s).

Directly specifying config path helps setting build dependencies.

Thanks to @DmitryPolukhin for valuable suggestion. This patch now propose
change only in ClangTidyMain.cpp.

Reviewed By: DmitryPolukhin

Differential Revision: https://reviews.llvm.org/D89936
2020-11-03 11:59:46 +00:00
..
Inputs [clang-tidy] adding "--config-file=<file-path>" to specify custom config file. 2020-11-03 11:59:46 +00:00
alternative-fixes.cpp
basic.cpp Unbreak clang-tidy tests after D79599 / e9b4113902. 2020-05-08 12:37:33 -04:00
check_clang_tidy.cpp
clang-tidy-__clang_analyzer__macro.cpp
clang-tidy-diff.cpp
clang-tidy-enable-check-profile-one-tu.cpp
clang-tidy-enable-check-profile-two-tu.cpp
clang-tidy-mac-libcxx.cpp
clang-tidy-run-with-database.cpp
clang-tidy-store-check-profile-one-tu.cpp
clean-up-code.cpp
config-file.cpp [clang-tidy] adding "--config-file=<file-path>" to specify custom config file. 2020-11-03 11:59:46 +00:00
config-files.cpp [clang-tidy] Use StringMap for ClangTidyOptions::OptionsMap 2020-07-30 10:31:13 +01:00
custom-diagnostics.cpp
deduplication.cpp
diagnostic.cpp
duplicate-conflicted-fixes-of-alias-checkers.cpp [clang-tidy] remove duplicate fixes of alias checkers 2020-06-19 20:40:59 +01:00
duplicate-fixes-of-alias-checkers.cpp [clang-tidy] remove duplicate fixes of alias checkers 2020-06-19 20:40:59 +01:00
duplicate-reports.cpp [clang-tidy] remove duplicate fixes of alias checkers 2020-06-19 20:40:59 +01:00
empty-database.cpp Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`""" 2020-02-13 10:16:06 -08:00
enable-alpha-checks.cpp
expand-modular-headers-ppcallbacks.cpp
explain-checks.cpp
export-diagnostics.cpp [clang-tidy] Add diagnostics level to YAML output 2020-06-15 07:40:53 -07:00
export-relpath.cpp
extra-args.cpp
file-filter-symlinks.cpp
file-filter.cpp
fix-errors.cpp
fix.cpp
invalid-command-line.cpp clang-tidy and clang-query wont crash with invalid command line options 2020-05-31 17:41:29 +01:00
line-filter.cpp
list-checks.cpp
macros.cpp
nolint-plugin.cpp Unbreak clang-tidy tests after D79599 / e9b4113902. 2020-05-08 12:37:33 -04:00
nolint.cpp
nolintnextline-plugin.cpp Unbreak clang-tidy tests after D79599 / e9b4113902. 2020-05-08 12:37:33 -04:00
nolintnextline.cpp
nonstandard-file-extension.test
objc-arc-and-properties.m
objc-no-arc-or-properties.m
overlapping.cpp
pr37091.cpp
read_file_config.cpp
run-clang-tidy.cpp Revert "Extend tests of run-clang-tidy" 2020-10-19 10:37:22 -04:00
select-checks.cpp
serialize-diagnostics.cpp
static-analyzer-config.cpp
static-analyzer.cpp
temporaries.cpp
use-color.cpp Use ANSI escape codes for --use-color on Windows 2020-10-31 10:36:42 -04:00
validate-check-names.cpp
vfsoverlay.cpp
warnings-as-errors-diagnostics.cpp
warnings-as-errors-plural.cpp
warnings-as-errors.cpp