[all-commits] [llvm/llvm-project] a7bdaf: [clang-tidy] Implement bugprone-incorrect-enable-if

Chris Cotter via All-commits all-commits at lists.llvm.org
Mon Aug 21 10:39:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7bdaff7cad93e96ee9aaf3dc8b2a46c84717361
      https://github.com/llvm/llvm-project/commit/a7bdaff7cad93e96ee9aaf3dc8b2a46c84717361
  Author: Chris Cotter <ccotter14 at bloomberg.net>
  Date:   2023-08-21 (Mon, 21 Aug 2023)

  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/IncorrectEnableIfCheck.cpp
    A clang-tools-extra/clang-tidy/bugprone/IncorrectEnableIfCheck.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/docs/clang-tidy/checks/bugprone/incorrect-enable-if.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/incorrect-enable-if.cpp

  Log Message:
  -----------
  [clang-tidy] Implement bugprone-incorrect-enable-if

Detects incorrect usages of std::enable_if that don't name the
nested 'type' type.

Reviewed By: PiotrZSL

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




More information about the All-commits mailing list