Skip to content

Commit 7fd57a4

Browse files
committed
addressed comments
1 parent 9f78992 commit 7fd57a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang-tools-extra/docs/clang-tidy/checks/portability/template-virtual-member-function.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
portability-template-virtual-member-function
44
============================================
55

6+
Finds cases when an uninstantiated virtual member function in a template class causes
7+
cross-compiler incompatibility.
8+
69
Upon instantiating a template class, non-virtual member functions don't have to be
710
instantiated unless they are used. Virtual member function instantiation on the other hand
8-
is unspecified and depends on the implementation of the compiler. This check intends to find
9-
cases when a virtual member function is not instantiated but it might be with a different
10-
compiler.
11+
is unspecified and depends on the implementation of the compiler.
1112

1213
In the following snippets the virtual member function is not instantiated by GCC and Clang,
1314
but it is instantiated by MSVC, so while the snippet is accepted by the former compilers,

0 commit comments

Comments
 (0)