[all-commits] [llvm/llvm-project] 9ece87: [clang-tidy] Add misc-header-include-cycle check

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sat Apr 15 05:44:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ece8753d5e6f49c31c2d988ef69225c036b25e0
      https://github.com/llvm/llvm-project/commit/9ece8753d5e6f49c31c2d988ef69225c036b25e0
  Author: Piotr Zegar <piotr.zegar at nokia.com>
  Date:   2023-04-15 (Sat, 15 Apr 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/CMakeLists.txt
    A clang-tools-extra/clang-tidy/misc/HeaderIncludeCycleCheck.cpp
    A clang-tools-extra/clang-tidy/misc/HeaderIncludeCycleCheck.h
    M clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/docs/clang-tidy/checks/misc/header-include-cycle.rst
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.first-d.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.first.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.fourth-d.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.fourth.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.second-d.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.second.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.self-d.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.self-e.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.self-i.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.self-n.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.self-o.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.self.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.third-d.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/header-include-cycle.third.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/header-include-cycle.first-s.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/header-include-cycle.fourth-s.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/header-include-cycle.second-s.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/header-include-cycle.self-s.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/header-include-cycle.third-s.hpp
    A clang-tools-extra/test/clang-tidy/checkers/misc/header-include-cycle.cpp

  Log Message:
  -----------
  [clang-tidy] Add misc-header-include-cycle check

Check detects cyclic #include dependencies between user-defined headers.

Reviewed By: njames93

Differential Revision: https://reviews.llvm.org/D144828




More information about the All-commits mailing list