[PATCH] D72241: [clang-tidy] new altera single work item barrier check
Frank Derry Wanye via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 10:05:14 PST 2020
ffrankies updated this revision to Diff 309565.
ffrankies added a comment.
Implemented changes requested by @aaron.ballman
- using `hasAnyName()` instead of multiple `hasName()` calls in the matcher
- switched to a combination of `hasAttr<>()` and `getAttr<>()` to remove need for casting and looping over all attributes (did not use `specific_attrs<>()` because there should only be one `ReqdWorkGroupSizeAttr` per function)
- re-phrased diagnostic messages
- added all 4 ID functions to the documentation
- removed the update to BUILD.gn
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72241/new/
https://reviews.llvm.org/D72241
Files:
clang-tools-extra/clang-tidy/altera/AlteraTidyModule.cpp
clang-tools-extra/clang-tidy/altera/CMakeLists.txt
clang-tools-extra/clang-tidy/altera/SingleWorkItemBarrierCheck.cpp
clang-tools-extra/clang-tidy/altera/SingleWorkItemBarrierCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/altera-single-work-item-barrier.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/altera-single-work-item-barrier.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72241.309565.patch
Type: text/x-patch
Size: 21683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201204/c9ce6ea6/attachment-0001.bin>
More information about the cfe-commits
mailing list