Issue 63820
Summary [Clang Tidy]: Type(Value) is treated as C style casting which is definitely wrong
Labels new issue
Assignees
Reporter CGQAQ
    On line 339, `FullObjectSlot(&object_)` is treated as C-style casting.
On line 338, I changed the `Object(object_)` to `Object{object_}`, the warning disappeared

![image](https://github.com/llvm/llvm-project/assets/15936231/073285ac-0434-44f0-9f98-f088ba16bea8)



And I found the [rule](https://google.github.io/styleguide/cppguide.html#Casting:~:text=You%20may%20use%20cast%20formats%20like%20T(x)%20only%20when%20T%20is%20a%20class%20type), they explicitly allowed this
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to