[all-commits] [llvm/llvm-project] 543f9e: [clang-tidy] Improve bugprone-unused-return-value ...
Piotr Zegar via All-commits
all-commits at lists.llvm.org
Thu Oct 26 13:58:33 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 543f9e781032f086afa7438065b9ce7a9c07ca2b
https://github.com/llvm/llvm-project/commit/543f9e781032f086afa7438065b9ce7a9c07ca2b
Author: Piotr Zegar <piotr.zegar at nokia.com>
Date: 2023-10-26 (Thu, 26 Oct 2023)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
M clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.h
M clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-return-value.rst
M clang-tools-extra/docs/clang-tidy/checks/cert/err33-c.rst
M clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-return-value-custom.cpp
M clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-return-value.cpp
M clang-tools-extra/test/clang-tidy/checkers/cert/err33-c.c
Log Message:
-----------
[clang-tidy] Improve bugprone-unused-return-value check (#66573)
Improve diagnostic message to be more straight forward, fix handling of
casting to non-void and add new option AllowCastToVoid to control
casting
to void behavior.
Closes #66570
More information about the All-commits
mailing list