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

Congcong Cai via All-commits all-commits at lists.llvm.org
Tue Apr 8 08:40:52 PDT 2025


  Branch: refs/heads/users/ccc04-08-_clang-tidy_treat_unsigned_char_and_signed_char_as_char_type_by_default_in_bugprone-unintended-char-ostream-output
  Home:   https://github.com/llvm/llvm-project
  Commit: f860128a64f171078eb9c61eca9eaf0152a04566
      https://github.com/llvm/llvm-project/commit/f860128a64f171078eb9c61eca9eaf0152a04566
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2025-04-08 (Tue, 08 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

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.



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