diff options
author | Alexander Kornienko <alexfh@google.com> | 2016-02-02 17:27:01 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2016-02-02 17:27:01 +0000 |
commit | 26e46d8fae7f3f38f1d86bcb20473b262c835d77 (patch) | |
tree | 45954b70c35ca0fbe58558a1e3f867e387fb2737 /clang-tools-extra/docs/clang-tidy | |
parent | 3131074723a0928ba02acb4cd0d0840498637c53 (diff) | |
download | bcm5719-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.rst | 7 | ||||
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/list.rst | 1 |
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 |