Julie Hockett
f108a8fee1
Reland "[clang-tidy] Adding RestrictSystemIncludes check to Fuchsia module"
...
This relands r332125 with a fixed test.
llvm-svn: 332141
2018-05-11 21:08:59 +00:00
Julie Hockett
b262a0489b
Revert "[clang-tidy] Adding RestrictSystemIncludes check to Fuchsia module"
...
This reverts commit r332125 for a failing test.
llvm-svn: 332131
2018-05-11 20:03:22 +00:00
Julie Hockett
02aba94e76
[clang-tidy] Adding RestrictSystemIncludes check to Fuchsia module
...
Adding a check to restrict system includes to a whitelist. Given a list
of includes that are explicitly allowed, the check issues a fixit to
remove any system include not on that list from the source file.
Differential Revision: https://reviews.llvm.org/D43778
llvm-svn: 332125
2018-05-11 19:23:15 +00:00
Julie Hockett
b11f8b3cbc
Revert "[clang-tidy] Adding RestrictSystemIncludes check to Fuchsia module"
...
This reverts commit r331930, which was landed by accident.
llvm-svn: 331934
2018-05-09 22:28:18 +00:00
Julie Hockett
06af01bbc2
[clang-tidy] Adding RestrictSystemIncludes check to Fuchsia module
...
Adding a check to restrict system includes to a whitelist. Given a list
of includes that are explicitly allowed, the check issues a fixit to
remove any system include not on that list from the source file.
Differential Revision: https://reviews.llvm.org/D43778
llvm-svn: 331930
2018-05-09 22:25:42 +00:00
Julie Hockett
8c1ee67c3f
[clang-tidy] Adding alias for anon namespaces in header (fuchsia module)
...
Adding alias to google-build-namespaces to the Fuchsia module (checks
for anonymous namespaces in headers).
Differential Revision: https://reviews.llvm.org/D45447
llvm-svn: 329720
2018-04-10 16:53:51 +00:00
Julie Hockett
587deb4557
[clang-tidy] Adding Fuchsia checker for multiple inheritance
...
Adds a check to the Fuchsia module to warn when a class
inherits from multiple classes that are not pure virtual.
See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md
for reference.
Differential Revision: https://reviews.llvm.org/D40580
llvm-svn: 323011
2018-01-19 23:59:59 +00:00
Julie Hockett
93a88e33ef
[clang-tidy] Adding Fuchsia checker for trailing returns
...
Adds a check to the Fuchsia module to warn if a function has a trailing
return.
See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md for
reference.
Differential Revision: https://reviews.llvm.org/D42116
llvm-svn: 322759
2018-01-17 21:18:15 +00:00
Julie Hockett
1ee1f49393
[clang-tidy] Adding Fuchsia checker for statically constructed objects
...
Adds a check to the Fuchsia module to warn if statically-stored objects
are created, unless constructed with `constexpr`.
See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md for
reference.
Differential Revision: https://reviews.llvm.org/D41546
llvm-svn: 322310
2018-01-11 21:17:43 +00:00
Julie Hockett
a966f45b7e
[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
2017-12-22 16:52:25 +00:00
Julie Hockett
63b57db396
[clang-tidy] Adding Fuchsia checker for virtual inheritance
...
Adds a check to the Fuchsia module to warn if classes are defined
with virtual inheritance.
See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md for
reference.
Differential Revision: https://reviews.llvm.org/D40813
llvm-svn: 320841
2017-12-15 18:54:28 +00:00
Julie Hockett
a0d50ce7af
Commit access test.
...
llvm-svn: 319812
2017-12-05 18:50:49 +00:00
Aaron Ballman
d3d78b903a
Add a new clang-tidy module for Fuchsia as an umbrella to diagnose issues with the Fuschia and Zircon coding guidelines ( https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md ). Adds the first of such checkers, which detects when default arguments are declared in a function declaration or when default arguments are used at call sites.
...
Patch by Julie Hockett
llvm-svn: 319225
2017-11-28 21:09:25 +00:00