Skip to content

Commit 8305069

Browse files
authored
created the FindingHiddenVirtualFunctionPrototypes tip
1 parent 0c5433a commit 8305069

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Finding hidden virtual function prototypes...
2+
3+
## g++
4+
5+
Make sure the `-Woverloaded-virtual` warnings are turned ON!
6+
7+
## clang++
8+
9+
Make sure the `-Woverloaded-virtual` warnings are turned ON!
10+
11+
## clang-tidy
12+
13+
Use **clang-tidy**:
14+
15+
clang-tidy -p build -header-filter=.* <<a compilation unit>>
16+
17+
This will highlight *clang-diagnostic-overloaded-virtual* warnings.
18+
19+
Consider adding the `cert-*` checks to check for CERT Secure Coding
20+
Guidelines

0 commit comments

Comments
 (0)