[all-commits] [llvm/llvm-project] 729657: [misc-coroutine-hostile-raii] Use getOperand inste...
Utkarsh Saxena via All-commits
all-commits at lists.llvm.org
Tue Jan 23 14:07:13 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 729657d6e15d0455557f35485deb87313ccdde10
https://github.com/llvm/llvm-project/commit/729657d6e15d0455557f35485deb87313ccdde10
Author: Utkarsh Saxena <usx at google.com>
Date: 2024-01-23 (Tue, 23 Jan 2024)
Changed paths:
M clang-tools-extra/clang-tidy/misc/CoroutineHostileRAIICheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/misc/coroutine-hostile-raii.cpp
Log Message:
-----------
[misc-coroutine-hostile-raii] Use getOperand instead of getCommonExpr. (#79206)
We were previously allowlisting awaitable types returned by
`await_transform` instead of the type of the operand of the `co_await`
expression.
This previously used to give false positives and not respect the
`AllowedAwaitablesList` flag when `await_transform` is used. See added
test cases for such examples.
More information about the All-commits
mailing list