[all-commits] [llvm/llvm-project] 9a5c6f: [clang-tidy]Add new check bugprone-casting-through...

Congcong Cai via All-commits all-commits at lists.llvm.org
Fri Oct 20 07:29:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a5c6f1760a353fdb4b61ec4ed5b28f4638cc77b
      https://github.com/llvm/llvm-project/commit/9a5c6f1760a353fdb4b61ec4ed5b28f4638cc77b
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2023-10-20 (Fri, 20 Oct 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/CastingThroughVoidCheck.cpp
    A clang-tools-extra/clang-tidy/bugprone/CastingThroughVoidCheck.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/docs/clang-tidy/checks/bugprone/casting-through-void.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/casting-through-void.cpp

  Log Message:
  -----------
  [clang-tidy]Add new check bugprone-casting-through-void (#69465)

This check detects usage of ``static_cast`` pointer to the other pointer
throght `static_cast` to `void *` in C++ code.
Fixes: #68532




More information about the All-commits mailing list