Placement new operators on non-object types cause crash in bugprone-misplaced-pointer-arithmetic-in-alloc. This patch fixes this issue.
Placement new is defined per standard:
void* operator new ( std::size_t count, void* ptr );
Here, the problem is that size_t is unsigned long on Linux and it seems that it is unsigned long long on Windows. How should I overcome this?
In CSA, to overcome the platform problem, it is common to add a target triple for the RUN line: