diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2017-08-10 09:13:26 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2017-08-10 09:13:26 +0000 |
commit | aa660b5149c9e37935f34d713cc75307f0cc7f4a (patch) | |
tree | 9ce3823ef5430963d7217853eba895159708adf1 | |
parent | 6e596e2938e42aa686585279faf0aaac26ef7546 (diff) | |
download | bcm5719-llvm-aa660b5149c9e37935f34d713cc75307f0cc7f4a.tar.gz bcm5719-llvm-aa660b5149c9e37935f34d713cc75307f0cc7f4a.zip |
[clang-tidy] Minor documentation improvement
Patch by: Lilla Barancsuk
llvm-svn: 310559
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst | 1 | ||||
-rw-r--r-- | clang-tools-extra/test/clang-tidy/readability-static-accessed-through-instance.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
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 b679799758c..879b87c2feb 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 1c760b84576..fff3f4a0e5f 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 <typename T> 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{{$}} } |