[PATCH] D100972: [clang-tidy] cppcoreguidelines-avoid-non-const-global-variables: add fixes to checks
Marco Gartmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 22 04:44:17 PDT 2021
mgartmann updated this revision to Diff 339565.
mgartmann added a comment.
- Renamed `printCleanedType()` to `cleanType()`
- Extended `cleanType()` to also remove `(anonymous)` from a type
- Made `hasSpaceAfterType()` more error-robust.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100972/new/
https://reviews.llvm.org/D100972
Files:
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidNonConstGlobalVariablesCheck.cpp
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidNonConstGlobalVariablesCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-avoid-non-const-global-variables.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-avoid-non-const-global-variables.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100972.339565.patch
Type: text/x-patch
Size: 25615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210422/0c69cb6c/attachment-0001.bin>
More information about the cfe-commits
mailing list