llvm-project/clang-tools-extra/clang-tidy/abseil
Alexander Kornienko fdfe324da1 [clang-tidy] IncludeInserter: allow <> in header name
This adds a pair of overloads for create(MainFile)?IncludeInsertion methods that
use the presence of the <> in the file name to control whether the #include
directive will use angle brackets or quotes. Motivating examples:
https://reviews.llvm.org/D82089#inline-789412 and
https://github.com/llvm/llvm-project/blob/master/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp#L433

The overloads with the IsAngled parameter can be removed after the users are
updated.

Update usages of createIncludeInsertion.

Update (almost all) usages of createMainFileIncludeInsertion.

Reviewed By: hokein

Differential Revision: https://reviews.llvm.org/D85666
2020-09-28 15:14:04 +02:00
..
AbseilMatcher.h [NFC][clang-tidy] Put abseil headers in alphabetical order 2020-08-18 15:52:47 +01:00
AbseilTidyModule.cpp [clang-tidy] Add abseil-string-find-str-contains checker. 2020-05-28 12:35:57 -04:00
CMakeLists.txt [openmp] Add missing dependencies for OMP.h.inc after d90443b 2020-06-23 11:48:04 -04:00
DurationAdditionCheck.cpp [clang-tidy] Rename time lookup functions; NFC 2019-02-02 19:57:37 +00:00
DurationAdditionCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationComparisonCheck.cpp [clang-tidy] Add the abseil-time-compare check 2019-03-11 16:47:45 +00:00
DurationComparisonCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationConversionCastCheck.cpp Fix typo. "piont" => "point" 2019-08-20 00:28:21 +00:00
DurationConversionCastCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationDivisionCheck.cpp [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationDivisionCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationFactoryFloatCheck.cpp [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationFactoryFloatCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationFactoryScaleCheck.cpp [clang-tidy] Use StringSwitch in a bunch of places. NFCI. 2020-04-26 17:24:47 +02:00
DurationFactoryScaleCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationRewriter.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
DurationRewriter.h [clang-tidy] Add the abseil-time-compare check 2019-03-11 16:47:45 +00:00
DurationSubtractionCheck.cpp [clang-tidy] Rename the absl duration helper functions; NFC 2019-01-24 19:23:50 +00:00
DurationSubtractionCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
DurationUnnecessaryConversionCheck.cpp [clang-tidy] Update Abseil Duration Conversion check to find more cases. 2020-03-13 12:52:37 -04:00
DurationUnnecessaryConversionCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
FasterStrsplitDelimiterCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
FasterStrsplitDelimiterCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
NoInternalDependenciesCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
NoInternalDependenciesCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
NoNamespaceCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
NoNamespaceCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
RedundantStrcatCallsCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
RedundantStrcatCallsCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
StrCatAppendCheck.cpp Set traversal explicitly where needed in clang-tidy 2020-05-21 22:34:37 +01:00
StrCatAppendCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
StringFindStartswithCheck.cpp [clang-tidy] IncludeInserter: allow <> in header name 2020-09-28 15:14:04 +02:00
StringFindStartswithCheck.h [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
StringFindStrContainsCheck.cpp [clang-tidy] Improved accuracy of check list updater script 2020-06-22 11:07:24 +01:00
StringFindStrContainsCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
TimeComparisonCheck.cpp [clang-tidy] Add the abseil-time-compare check 2019-03-11 16:47:45 +00:00
TimeComparisonCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
TimeSubtractionCheck.cpp [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
TimeSubtractionCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
UpgradeDurationConversionsCheck.cpp [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
UpgradeDurationConversionsCheck.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00