[clang-tidy] Adding Fuchsia checker for overloaded operators
authorJulie Hockett <juliehockett@google.com>
Fri, 22 Dec 2017 16:52:25 +0000 (16:52 +0000)
committerJulie Hockett <juliehockett@google.com>
Fri, 22 Dec 2017 16:52:25 +0000 (16:52 +0000)
commita966f45b7ee6a9c77a7040b51a18c01caac90918
tree280861773da8ff8eea0be9932721fa8a663a0a8f
parent9c9b61df7e37bc1832b225c0c26123031727c8ef
[clang-tidy] Adding Fuchsia checker for overloaded operators

Adds a check to the Fuchsia module to warn if an operator is overloaded,
except move and copy operators.

See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md for
reference.

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

llvm-svn: 321363
clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt
clang-tools-extra/clang-tidy/fuchsia/FuchsiaTidyModule.cpp
clang-tools-extra/clang-tidy/fuchsia/OverloadedOperatorCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/fuchsia/OverloadedOperatorCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/fuchsia-overloaded-operator.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/fuchsia-overloaded-operator.cpp [new file with mode: 0644]