[PATCH] D135404: [clang-tidy] Add a checker for converting into C++17 variable template type traits
Roy Jacobson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 6 14:22:38 PDT 2022
royjacobson created this revision.
royjacobson added reviewers: njames93, ymandel, alexfh.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a project: All.
royjacobson requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
This adds a clang-tidy checker that can transform C++11-style type traits into C++17-style
variable templates. Variable templates can compile faster because they can be implemented
without instantiating classes.
I'm not very familiar with clang matchers; There's probably a better way to do what I
want than regex + hacky type checking, so suggestions are very welcome.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135404
Files:
clang-tools-extra/clang-tidy/modernize/CMakeLists.txt
clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
clang-tools-extra/clang-tidy/modernize/TypeTraitsCheck.cpp
clang-tools-extra/clang-tidy/modernize/TypeTraitsCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/modernize/type-traits.rst
clang-tools-extra/test/clang-tidy/checkers/modernize/type-traits.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135404.465878.patch
Type: text/x-patch
Size: 12311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221006/0cc85a04/attachment-0001.bin>
More information about the cfe-commits
mailing list