From aa660b5149c9e37935f34d713cc75307f0cc7f4a Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Thu, 10 Aug 2017 09:13:26 +0000 Subject: [PATCH] [clang-tidy] Minor documentation improvement Patch by: Lilla Barancsuk llvm-svn: 310559 --- .../clang-tidy/checks/readability-static-accessed-through-instance.rst | 1 + .../test/clang-tidy/readability-static-accessed-through-instance.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst index b679799..879b87c 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst @@ -25,6 +25,7 @@ is changed to: .. code-block:: c++ + C *c1 = new C(); C::foo(); C::x; diff --git a/clang-tools-extra/test/clang-tidy/readability-static-accessed-through-instance.cpp b/clang-tools-extra/test/clang-tidy/readability-static-accessed-through-instance.cpp index 1c760b8..fff3f4a 100644 --- a/clang-tools-extra/test/clang-tidy/readability-static-accessed-through-instance.cpp +++ b/clang-tools-extra/test/clang-tidy/readability-static-accessed-through-instance.cpp @@ -116,7 +116,7 @@ using E = D; template void f(T t, C c) { t.x; // OK, t is a template parameter. - c.x; // 1 + c.x; // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: static member // CHECK-FIXES: {{^}} C::x; // 1{{$}} } -- 2.7.4