[clang-tidy] Treat all types with non-trivial destructors as RAII.
authorAlexander Kornienko <alexfh@google.com>
Tue, 12 May 2015 12:17:20 +0000 (12:17 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 12 May 2015 12:17:20 +0000 (12:17 +0000)
commitbdaa681fc6bfca65aeaf3c11ad3636f37e72c9ee
tree288c77fa6ac995234de698a3ce705d3a56579bda
parentc07f8487856ebb8bec1cd78cb6510ff7455e9ce7
[clang-tidy] Treat all types with non-trivial destructors as RAII.

This solves some false negatives at a cost of adding some false positives that
can be fixed easily and (almost) automatically.

llvm-svn: 237120
clang-tools-extra/clang-tidy/misc/UnusedRAIICheck.cpp
clang-tools-extra/test/clang-tidy/misc-unused-raii.cpp