| Issue |
87069
|
| Summary |
[clang-tidy] bugprone-casting-through-void - flags casts from const void* to void* to A*
|
| Labels |
clang-tidy,
false-positive
|
| Assignees |
|
| Reporter |
PiotrZSL
|
Should not detect code like this:
```
struct A {
int a;
};
A* test(const void* ptr) {
return static_cast<A*>(const_cast<void*>(ptr));
}
```
Simply when source is already void* and we just add/drop const.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs