aboutsummaryrefslogtreecommitdiff
path: root/unittests/Tooling/ToolingTest.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-04-27 07:05:31 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-04-27 07:05:31 +0000
commit7ccc95bceebb2d1c8fbe277c9e33bde7dc1ccbb1 (patch)
treea0ee5fcc77c93f3b704f7c4b821c800af8573118 /unittests/Tooling/ToolingTest.cpp
parentd46a1125d43bcfd47fbd1206ebd1226863549390 (diff)
Add a warning (-Wnon-pod-memset) for calls to memset() with
a destination pointer that points to a non-POD type. This can flag such horrible bugs as overwriting vptrs when a previously POD structure is suddenly given a virtual method, or creating objects that crash on practically any use by zero-ing out a member when its changed from a const char* to a std::string, etc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Tooling/ToolingTest.cpp')
0 files changed, 0 insertions, 0 deletions