Integrate a tool for catching missing includes
未關閉
還沒有人認領這個 Issue。
- 主要語言
- C++
- 星號
- 74
- 分支
- 9
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Let's integrate a tool such as:
- https://include-what-you-use.org
- http://clang.llvm.org/extra/include-fixer.html
- https://github.com/google/styleguide/tree/gh-pages/cpplint
to catch missing includes that might not appear until Travis tries to build your code for a different OS, see https://travis-ci.org/mapbox/node-cpp-skel/builds/394326432 for example and notice how this builds for macOS but not Linux (this was due to missing #include <memory>).
Referencing @springmeyer's comment and tool suggestions here: https://github.com/mapbox/node-cpp-skel/pull/129#issuecomment-398533472
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
比較 include-what-you-use、include-fixer 和 cpplint,然後檢查 issue 中引用的 Travis build,以了解可以在哪裡執行檢查。完成的標準是所選工具已整合,並能在相關 build 中偵測缺少的 C++ include,例如 。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- cpp
- 領域
- build-system, ci-cd, tooling
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100