[all-commits] [llvm/llvm-project] 56762b: [clang-tidy] Add new check bugprone-unintended-cha...

Congcong Cai via All-commits all-commits at lists.llvm.org
Thu Feb 27 03:36:46 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56762b7ace0596404e5ae271f278cf7540b374f2
      https://github.com/llvm/llvm-project/commit/56762b7ace0596404e5ae271f278cf7540b374f2
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2025-02-27 (Thu, 27 Feb 2025)

  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/UnintendedCharOstreamOutputCheck.cpp
    A clang-tools-extra/clang-tidy/bugprone/UnintendedCharOstreamOutputCheck.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/docs/clang-tidy/checks/bugprone/unintended-char-ostream-output.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/unintended-char-ostream-output-cast-type.cpp
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/unintended-char-ostream-output.cpp

  Log Message:
  -----------
  [clang-tidy] Add new check bugprone-unintended-char-ostream-output (#127720)

It wants to find unintended character output from `uint8_t` and `int8_t`
to an ostream.
e.g.
```c++
uint8_t v = 9;
std::cout << v;
```

---------

Co-authored-by: whisperity <whisperity at gmail.com>



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