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

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sat Jun 24 04:01:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f6e0052a97f13a5f595f3fd0c135c2c4db119d4
      https://github.com/llvm/llvm-project/commit/7f6e0052a97f13a5f595f3fd0c135c2c4db119d4
  Author: Piotr Zegar <piotr.zegar at nokia.com>
  Date:   2023-06-24 (Sat, 24 Jun 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