[all-commits] [llvm/llvm-project] 1e0669: [clang-tidy] New check: bugprone-suspicious-include
Jon Roelofs via All-commits
all-commits at lists.llvm.org
Mon Mar 9 14:59:43 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1e0669bfe05f0f48ee88152c4a1d581f484f8d67
https://github.com/llvm/llvm-project/commit/1e0669bfe05f0f48ee88152c4a1d581f484f8d67
Author: Jonathan Roelofs <jroelofs at jroelofs.com>
Date: 2020-03-09 (Mon, 09 Mar 2020)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
M clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
A clang-tools-extra/clang-tidy/bugprone/SuspiciousIncludeCheck.cpp
A clang-tools-extra/clang-tidy/bugprone/SuspiciousIncludeCheck.h
M clang-tools-extra/clang-tidy/utils/FileExtensionsUtils.cpp
M clang-tools-extra/clang-tidy/utils/FileExtensionsUtils.h
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-include.rst
A clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/a
A clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/a.cpp
A clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/a.hpp
A clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/c.c
A clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/c.cc
A clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/c.cxx
A clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/i.cpp
A clang-tools-extra/test/clang-tidy/checkers/bugprone-suspicious-include.cpp
Log Message:
-----------
[clang-tidy] New check: bugprone-suspicious-include
Detects and fixes suspicious code like: `#include "foo.cpp"`.
Inspired by: https://twitter.com/lefticus/status/1228458240364687360?s=20
https://reviews.llvm.org/D74669
More information about the All-commits
mailing list