[PATCH] D41648: [clang-tidy] implement cppcoreguidelines macro rules
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 31 07:29:21 PST 2017
JonasToth created this revision.
JonasToth added reviewers: aaron.ballman, hokein, alexfh.
Herald added subscribers: cfe-commits, kbarton, xazax.hun, mgorny, nemanjai, klimek.
In short macros are discouraged by multiple rules (and sometimes reference randomly).
This check allows only headerguards and empty macros for annotation.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D41648
Files:
clang-tidy/cppcoreguidelines/CMakeLists.txt
clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
clang-tidy/cppcoreguidelines/MacroUsageCheck.cpp
clang-tidy/cppcoreguidelines/MacroUsageCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/cppcoreguidelines-macro-usage.rst
docs/clang-tidy/checks/list.rst
test/clang-tidy/cppcoreguidelines-macro-usage.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41648.128371.patch
Type: text/x-patch
Size: 7763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171231/a0b512d8/attachment-0001.bin>
More information about the cfe-commits
mailing list