[PATCH] D152953: [clang-tidy] Introduce fuchsia-global-variables check
Caslyn Tonelli via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 11:04:45 PDT 2023
Caslyn created this revision.
Herald added subscribers: PiotrZSL, carlosgalvezp, abrachet, phosek, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
Caslyn updated this revision to Diff 531489.
Caslyn added a comment.
Caslyn updated this revision to Diff 531932.
Caslyn updated this revision to Diff 532713.
Caslyn added reviewers: ymandel, Prabhuk.
Caslyn published this revision for review.
Herald added projects: LLVM, clang-tools-extra.
Herald added subscribers: cfe-commits, llvm-commits.
Fixes, cleanups.
Caslyn added a comment.
Include exception for variables declared in macros; cleanups.
Caslyn added a comment.
Add constinit exception, remove G3 exceptions
Introduce a clang-tidy check to the fuchsia module to warn of any static
or global variables that do not have trivial destructors.
The implementation is a pared down version of the Google3
check <http://google3/devtools/cymbal/clang_tidy/runtime/global_variables.cc;rcl=441071766> with configurable options to add types for the check to ignore
(e.g. LazyRE2).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152953
Files:
clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt
clang-tools-extra/clang-tidy/fuchsia/FuchsiaTidyModule.cpp
clang-tools-extra/clang-tidy/fuchsia/GlobalVariablesCheck.cpp
clang-tools-extra/clang-tidy/fuchsia/GlobalVariablesCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/fuchsia/global-variables.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/fuchsia/global-variables.cpp
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/fuchsia/BUILD.gn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152953.532713.patch
Type: text/x-patch
Size: 17734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230620/a81a69e8/attachment.bin>
More information about the llvm-commits
mailing list