llvm-project
f575c55b - [Clang][AllocToken] Address post-merge review of placement-new inference (#243991)

Commit
1 day ago
[Clang][AllocToken] Address post-merge review of placement-new inference (#243991) Follow-up to #241548: - Skip collecting placement news in C, which has none. Otherwise every function with an untyped allocation call (`malloc(n)`) had its body traversed for nothing. - Drop the look-through of trivial copy/move constructors in a variable's initializer. With guaranteed copy elision the initializer is the call itself, so this only affected class-typed results before C++17, and it was not tested. - Test reassignment of a class-typed variable (an operator call), and drop the compound assignment, increment and constructor-argument cases, which add no coverage.
Author
Parents
Loading