[all-commits] [llvm/llvm-project] 7e29da: Add support for return values in bugprone-stringvi...
CJ Johnson via All-commits
all-commits at lists.llvm.org
Wed Jan 12 13:57:36 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7e29da875ca95cd916e7ce6668fa85b638c3bd5f
https://github.com/llvm/llvm-project/commit/7e29da875ca95cd916e7ce6668fa85b638c3bd5f
Author: CJ Johnson <johnsoncj at google.com>
Date: 2022-01-12 (Wed, 12 Jan 2022)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/StringviewNullptrCheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/bugprone-stringview-nullptr.cpp
Log Message:
-----------
Add support for return values in bugprone-stringview-nullptr
bugprone-stringview-nullptr was not initially written with tests for return statements. After landing the check, the thought crossed my mind to add such tests. After writing them, I realized they needed additional handling in the matchers.
Differential Revision: https://reviews.llvm.org/D115121
More information about the All-commits
mailing list