[PATCH] D74669: [clang-tidy] New check: misc-no-include-cpp
Jonathan Roelofs via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 15 09:25:13 PST 2020
jroelofs created this revision.
jroelofs added a reviewer: aaron.ballman.
Herald added subscribers: cfe-commits, kbarton, xazax.hun, mgorny, nemanjai.
Herald added a project: clang.
Detects and fixes suspicious code like: `#include "foo.cpp"`.
Inspired by: https://twitter.com/lefticus/status/1228458240364687360?s=20
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74669
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
clang-tools-extra/clang-tidy/misc/NoIncludeCPPCheck.cpp
clang-tools-extra/clang-tidy/misc/NoIncludeCPPCheck.h
clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/a.cpp
clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/c.c
clang-tools-extra/test/clang-tidy/checkers/misc-no-include-cpp.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74669.244829.patch
Type: text/x-patch
Size: 6465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200215/61febbd7/attachment.bin>
More information about the cfe-commits
mailing list