summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-02-02 17:27:01 +0000
committerAlexander Kornienko <alexfh@google.com>2016-02-02 17:27:01 +0000
commit26e46d8fae7f3f38f1d86bcb20473b262c835d77 (patch)
tree45954b70c35ca0fbe58558a1e3f867e387fb2737 /clang-tools-extra/docs/clang-tidy
parent3131074723a0928ba02acb4cd0d0840498637c53 (diff)
downloadbcm5719-llvm-26e46d8fae7f3f38f1d86bcb20473b262c835d77.tar.gz
bcm5719-llvm-26e46d8fae7f3f38f1d86bcb20473b262c835d77.zip
[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
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy')
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/google-runtime-references.rst7
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/list.rst1
2 files changed, 8 insertions, 0 deletions
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
OpenPOWER on IntegriCloud