[clang-tidy] Fix segfault in cppcore-guidelines-special-member-functions check
authorJonathan Coe <jbcoe@me.com>
Tue, 2 Aug 2016 21:18:37 +0000 (21:18 +0000)
committerJonathan Coe <jbcoe@me.com>
Tue, 2 Aug 2016 21:18:37 +0000 (21:18 +0000)
commit77ec263e6025155850f117c934ae11eceaba5f3a
treedfeb80312feeb81c156fbfcb9a37e38cd99b0ac0
parent6eb1ca74165a4e17d4f0193e879e729170257e39
[clang-tidy] Fix segfault in cppcore-guidelines-special-member-functions check

Summary:
Use a set rather than a vector of defined special member functions so
that multiple declarations of the same function are only counted once.

Move some private static member functions into the cpp file.

Run clang-format on header.

Reviewers: ericLemanissier, Prazek, aaron.ballman

Subscribers: Prazek, cfe-commits, nemanjai

Projects: #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D23008

llvm-svn: 277523
clang-tools-extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp
clang-tools-extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.h
clang-tools-extra/test/clang-tidy/cppcoreguidelines-special-member-functions.cpp