Skip to content

Commit 66dae6e

Browse files
authored
created GeneralTipsAndTools tip
1 parent 8305069 commit 66dae6e

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# General tips
2+
3+
## g++
4+
5+
To get the list of g++ warnings:
6+
7+
g++ --help=warnings
8+
9+
## clang++
10+
11+
To get the list of clang++ warnings, see [Diagnostic flags in
12+
Clang](https://clang.llvm.org/docs/DiagnosticsReference.html).
13+
14+
Generally all warnings flags which g++ implements will be implemented by
15+
clang++. BUT they might be implemented differently (and hence triggered on
16+
slightly different conditions).
17+
18+
See: [Clang
19+
tools](https://github.com/llvm-mirror/clang/blob/master/docs/ClangTools.rst)
20+
21+
## clang-tidy
22+
23+
See:
24+
[Clang-tidy](https://github.com/llvm/llvm-project/blob/master/clang-tools-extra/docs/clang-tidy/index.rst)
25+
26+
See:
27+
[Clang-Tidy](https://clang.llvm.org/extra/clang-tidy/)
28+
29+
## clang-check
30+
31+
See:
32+
[Clang-check](http://manpages.org/clang-check)
33+
34+
## Other tools
35+
36+
See:
37+
* [Clang-query]
38+
(https://devblogs.microsoft.com/cppblog/exploring-clang-tooling-part-2-examining-the-clang-ast-with-clang-query/)
39+
* [AST Matcher
40+
Reference](https://clang.llvm.org/docs/LibASTMatchersReference.html)
41+
* [Matching the Clang AST](https://clang.llvm.org/docs/LibASTMatchers.html)

0 commit comments

Comments
 (0)