From 1429412fe355b947c14f6f5cb92d6fad728dfa65 Mon Sep 17 00:00:00 2001 From: Felix Berger Date: Mon, 15 Feb 2016 03:27:54 +0000 Subject: [PATCH] Improve documentation llvm-svn: 260869 --- .../docs/clang-tidy/checks/performance-for-range-copy.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst index a3af055..d61df3f 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst @@ -10,8 +10,8 @@ The check is only applied to loop variables of types that are expensive to copy which means they are not trivially copyable or have a non-trivial copy constructor or destructor. -To ensure that it is safe to replace the copy with const reference the following -heuristic is employed: +To ensure that it is safe to replace the copy with a const reference the +following heuristic is employed: 1. The loop variable is const qualified. 2. The loop variable is not const, but only const methods or operators are -- 2.7.4