[all-commits] [llvm/llvm-project] 716469: [clang-tidy] Fix segfault in bugprone-standalone-e...
denik82 via All-commits
all-commits at lists.llvm.org
Wed Jan 25 12:07:05 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 716469b6139ab5ec5c5b5dac32891300260db8eb
https://github.com/llvm/llvm-project/commit/716469b6139ab5ec5c5b5dac32891300260db8eb
Author: Denis Nikitin <denik at google.com>
Date: 2023-01-25 (Wed, 25 Jan 2023)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/StandaloneEmptyCheck.cpp
M clang-tools-extra/docs/clang-tidy/checks/bugprone/standalone-empty.rst
M clang-tools-extra/test/clang-tidy/checkers/bugprone/standalone-empty.cpp
Log Message:
-----------
[clang-tidy] Fix segfault in bugprone-standalone-empty
The check incorrectly identified empty() method call in the template
class definition as a stand-alone function call.
This led to a crash because the checker did not expect empty() function
calls without arguments.
Fixes: https://github.com/llvm/llvm-project/issues/59487
Reviewed By: cjdb
Differential Revision: https://reviews.llvm.org/D142423
More information about the All-commits
mailing list