OLD | NEW |
1 # Clang Tidy | 1 # Clang Tidy |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Danger, Will Robinson! | 5 ## Danger, Will Robinson! |
6 | 6 |
7 Support for `clang-tidy` in Chromium is very experimental, and is somewhat | 7 Support for `clang-tidy` in Chromium is very experimental, and is somewhat |
8 painful to use. We are exploring making it easier and integrating with existing | 8 painful to use. We are exploring making it easier and integrating with existing |
9 tools, but aren't there yet. If you don't want to wait and enjoy tinkering, | 9 tools, but aren't there yet. If you don't want to wait and enjoy tinkering, |
10 forge ahead. Otherwise, feel free to turn back now. | 10 forge ahead. Otherwise, feel free to turn back now. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 -checks=<CHECKS> \ | 84 -checks=<CHECKS> \ |
85 -header-filter=<FILTER> \ | 85 -header-filter=<FILTER> \ |
86 -fix \ | 86 -fix \ |
87 chrome/browser | 87 chrome/browser |
88 ``` | 88 ``` |
89 | 89 |
90 \*It's not clear which, if any, `gn` flags may cause issues for `clang-tidy`. | 90 \*It's not clear which, if any, `gn` flags may cause issues for `clang-tidy`. |
91 I've had no problems building a component release build, both with and without | 91 I've had no problems building a component release build, both with and without |
92 goma. if you run into issues, let us know! | 92 goma. if you run into issues, let us know! |
93 | 93 |
94 ## Troubleshooting | |
95 | |
96 If you see errors like | |
97 ``` | |
98 src/build/linux/debian_wheezy_amd64-sysroot/usr/include/wchar.h:40:11: error: 's
tdarg.h' file not found [clang-diagnostic-error] | |
99 ``` | |
100 | |
101 then you should also build the `clang-headers` target in your llvm checkout. | |
102 This is fixed by http://reviews.llvm.org/D22046, so if your llvm checkout is | |
103 up-to-date, this shouldn't be needed. | |
104 | |
105 ## Questions | 94 ## Questions |
106 | 95 |
107 Questions? Reach out to rdevlin.cronin@chromium.org or thakis@chromium.org. | 96 Questions? Reach out to rdevlin.cronin@chromium.org or thakis@chromium.org. |
108 Discoveries? Update the doc! | 97 Discoveries? Update the doc! |
OLD | NEW |