[all-commits] [llvm/llvm-project] 068148: [clang-tidy] treat unsigned char and signed char a...

Congcong Cai via All-commits all-commits at lists.llvm.org
Sat Apr 12 21:10:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06814834a63139ff27efe3bdbc6dc15d46666b39
      https://github.com/llvm/llvm-project/commit/06814834a63139ff27efe3bdbc6dc15d46666b39
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2025-04-13 (Sun, 13 Apr 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/UnintendedCharOstreamOutputCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/UnintendedCharOstreamOutputCheck.h
    M clang-tools-extra/docs/clang-tidy/checks/bugprone/unintended-char-ostream-output.rst
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/unintended-char-ostream-output-allowed-types.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/unintended-char-ostream-output-cast-type.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/unintended-char-ostream-output.cpp

  Log Message:
  -----------
  [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (#134870)

Add `AllowedTypes` options to support custom defined char like type.
treat `unsigned char` and `signed char` as char like type by default.
The allowed types only effect when the var decl or explicit cast to this
non-canonical type names.

Fixed: #133425



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list