projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e596e2
)
[clang-tidy] Minor documentation improvement
author
Gabor Horvath
<xazax.hun@gmail.com>
Thu, 10 Aug 2017 09:13:26 +0000
(09:13 +0000)
committer
Gabor Horvath
<xazax.hun@gmail.com>
Thu, 10 Aug 2017 09:13:26 +0000
(09:13 +0000)
Patch by: Lilla Barancsuk
llvm-svn: 310559
clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst
patch
|
blob
|
history
clang-tools-extra/test/clang-tidy/readability-static-accessed-through-instance.cpp
patch
|
blob
|
history
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
(file)
--- 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
(file)
--- 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{{$}}
}