2020-04-08 00:26:40 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
support
|
|
|
|
FrontendOpenMP
|
|
|
|
)
|
2018-03-09 18:47:14 +08:00
|
|
|
|
|
|
|
add_clang_library(clangTidyAbseilModule
|
|
|
|
AbseilTidyModule.cpp
|
2019-01-28 22:03:09 +08:00
|
|
|
DurationAdditionCheck.cpp
|
[clang-tidy] Recommit: Add the abseil-duration-comparison check
Summary:
This check finds instances where Duration values are being converted to a numeric value in a comparison expression, and suggests that the conversion happen on the other side of the expression to a Duration. See documentation for examples.
This also shuffles some code around so that the new check may perform in sone step simplifications also caught by other checks.
Compilation is unbroken, because the hash-function is now directly
specified for std::unordered_map, as 'enum class' does not compile as
key (seamingly only on some compilers).
Patch by hwright.
Reviewers: aaron.ballman, JonasToth, alexfh, hokein
Reviewed By: JonasToth
Subscribers: sammccall, Eugene.Zelenko, xazax.hun, cfe-commits, mgorny
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D54737
llvm-svn: 348169
2018-12-04 03:22:08 +08:00
|
|
|
DurationComparisonCheck.cpp
|
2019-01-18 04:37:35 +08:00
|
|
|
DurationConversionCastCheck.cpp
|
2018-08-17 23:19:19 +08:00
|
|
|
DurationDivisionCheck.cpp
|
2018-10-25 01:40:50 +08:00
|
|
|
DurationFactoryFloatCheck.cpp
|
2018-11-19 00:41:06 +08:00
|
|
|
DurationFactoryScaleCheck.cpp
|
[clang-tidy] Recommit: Add the abseil-duration-comparison check
Summary:
This check finds instances where Duration values are being converted to a numeric value in a comparison expression, and suggests that the conversion happen on the other side of the expression to a Duration. See documentation for examples.
This also shuffles some code around so that the new check may perform in sone step simplifications also caught by other checks.
Compilation is unbroken, because the hash-function is now directly
specified for std::unordered_map, as 'enum class' does not compile as
key (seamingly only on some compilers).
Patch by hwright.
Reviewers: aaron.ballman, JonasToth, alexfh, hokein
Reviewed By: JonasToth
Subscribers: sammccall, Eugene.Zelenko, xazax.hun, cfe-commits, mgorny
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D54737
llvm-svn: 348169
2018-12-04 03:22:08 +08:00
|
|
|
DurationRewriter.cpp
|
2018-12-14 03:23:52 +08:00
|
|
|
DurationSubtractionCheck.cpp
|
2019-02-05 03:28:20 +08:00
|
|
|
DurationUnnecessaryConversionCheck.cpp
|
2018-08-22 21:58:25 +08:00
|
|
|
FasterStrsplitDelimiterCheck.cpp
|
2018-08-29 22:23:15 +08:00
|
|
|
NoInternalDependenciesCheck.cpp
|
2018-08-28 15:48:28 +08:00
|
|
|
NoNamespaceCheck.cpp
|
2018-08-29 19:29:07 +08:00
|
|
|
RedundantStrcatCallsCheck.cpp
|
2018-08-29 19:17:31 +08:00
|
|
|
StrCatAppendCheck.cpp
|
2018-09-20 08:02:55 +08:00
|
|
|
StringFindStartswithCheck.cpp
|
[clang-tidy] Add abseil-string-find-str-contains checker.
Summary: This adds a checker which suggests replacing string.find(...) == npos with absl::StrContains.
Reviewers: alexfh, hokein, aaron.ballman, njames93, ymandel
Reviewed By: ymandel
Subscribers: ymandel, Eugene.Zelenko, xazax.hun, mgorny, Charusso, phosek, cfe-commits
Tags: #clang, #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D80023
2020-05-29 00:22:30 +08:00
|
|
|
StringFindStrContainsCheck.cpp
|
2019-03-12 00:47:45 +08:00
|
|
|
TimeComparisonCheck.cpp
|
2019-02-28 04:08:50 +08:00
|
|
|
TimeSubtractionCheck.cpp
|
2018-12-08 04:03:03 +08:00
|
|
|
UpgradeDurationConversionsCheck.cpp
|
2018-03-09 18:47:14 +08:00
|
|
|
|
|
|
|
LINK_LIBS
|
2020-06-17 02:43:55 +08:00
|
|
|
clangTidy
|
|
|
|
clangTidyUtils
|
2020-06-23 23:48:04 +08:00
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
omp_gen
|
2020-06-17 02:43:55 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
clang_target_link_libraries(clangTidyAbseilModule
|
|
|
|
PRIVATE
|
2018-03-09 18:47:14 +08:00
|
|
|
clangAST
|
|
|
|
clangASTMatchers
|
|
|
|
clangBasic
|
|
|
|
clangLex
|
2018-10-25 04:31:58 +08:00
|
|
|
clangTooling
|
2020-05-29 01:36:45 +08:00
|
|
|
clangTransformer
|
2018-03-09 18:47:14 +08:00
|
|
|
)
|