[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 29 13:28:28 PDT 2018
Eugene.Zelenko added inline comments.
================
Comment at: clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp:22
+ ast_matchers::MatchFinder *Finder) {
+ // For the arithmetic calls, we match only the uses of the templated operators
+ // where the template parameter is not a built-in type. This means the
----------------
Please add check for C++. See other Abseil checks code as example.
================
Comment at: clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp:136
+
+ auto SourceRange = Lexer::makeFileCharRange(
+ CharSourceRange::getTokenRange(ArgExpr->getSourceRange()),
----------------
Please don't use auto, since return type is not obvious.
================
Comment at: docs/ReleaseNotes.rst:70
+- New :doc:`abseil-upgrade-duration-conversions
+ <clang-tidy/checks/abseil-upgrade-duration-conversions>` check.
----------------
Please sort new checks list alphabetically.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53830
More information about the cfe-commits
mailing list