From 26e46d8fae7f3f38f1d86bcb20473b262c835d77 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Tue, 2 Feb 2016 17:27:01 +0000 Subject: [clang-tidy] Add non-constant references in function parameters check. Summary: This is implemented originally by Alexander Kornienko. Reviewers: alexfh Subscribers: cfe-commits Patch by Haojian Wu! Differential Revision: http://reviews.llvm.org/D16717 llvm-svn: 259530 --- .../docs/clang-tidy/checks/google-runtime-references.rst | 7 +++++++ clang-tools-extra/docs/clang-tidy/checks/list.rst | 1 + 2 files changed, 8 insertions(+) create mode 100644 clang-tools-extra/docs/clang-tidy/checks/google-runtime-references.rst (limited to 'clang-tools-extra/docs/clang-tidy') diff --git a/clang-tools-extra/docs/clang-tidy/checks/google-runtime-references.rst b/clang-tools-extra/docs/clang-tidy/checks/google-runtime-references.rst new file mode 100644 index 00000000000..3d9a08ee70d --- /dev/null +++ b/clang-tools-extra/docs/clang-tidy/checks/google-runtime-references.rst @@ -0,0 +1,7 @@ +google-runtime-references +========================= + +Checks the usage of non-constant references in function parameters. + +The corresponding style guide rule: +https://google.github.io/styleguide/cppguide.html#Reference_Arguments diff --git a/clang-tools-extra/docs/clang-tidy/checks/list.rst b/clang-tools-extra/docs/clang-tidy/checks/list.rst index d95e1233e55..aca429b0e43 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/list.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/list.rst @@ -38,6 +38,7 @@ Clang-Tidy Checks google-runtime-member-string-references google-runtime-memset google-runtime-operator + google-runtime-references llvm-header-guard llvm-include-order llvm-namespace-comment -- cgit v1.2.3