[PATCH] D118743: [clang-tidy] Add `modernize-use-inline-const-variables-in-headers` check
Evgeny Shulgin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 18 15:25:56 PST 2023
Izaron updated this revision to Diff 498637.
Izaron added a comment.
Use the common `isInAnonymousNamespace` matcher.
Split the test into two files.
Thanks to @carlosgalvezp for advices!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118743/new/
https://reviews.llvm.org/D118743
Files:
clang-tools-extra/clang-tidy/modernize/CMakeLists.txt
clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
clang-tools-extra/clang-tidy/modernize/UseInlineConstVariablesInHeadersCheck.cpp
clang-tools-extra/clang-tidy/modernize/UseInlineConstVariablesInHeadersCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/modernize/use-inline-const-variables-in-headers.rst
clang-tools-extra/test/clang-tidy/checkers/modernize/use-inline-const-variables-in-headers-extern.hpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-inline-const-variables-in-headers-non-inline.hpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118743.498637.patch
Type: text/x-patch
Size: 15642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230218/76376f5f/attachment-0001.bin>
More information about the cfe-commits
mailing list