4 ms·
I wonder how clang-tidy [1] could help in this task [1] http://clang.llvm.org/extra/clang-tidy/ http://clang.llvm.org/extra/clang-tidy/
by dduarte 10y ago
I wonder how clang-tidy [1] could help in this task
[1] http://clang.llvm.org/extra/clang-tidy/ http://clang.llvm.org/extra/clang-tidy/
- tfar 10y agoIt helps okay. I recently used it to slowly and mostly automatically introduce more and more C++11 across a bigger code base. For example it does a great job introducing nullptr [0] and an okay job turning classic for loops into range based for loops [1] where possible. [0] https://github.com/swift/swift/commit/eddd92ed76ae68cb1e202602fd3ebd11b69191a2 https://github.com/swift/swift/commit/eddd92ed76ae68cb1e2026... [1] https://github.com/swift/swift/commit/3c560e31b0f168da917e8d566db01fd1cd997d86 https://github.com/swift/swift/commit/3c560e31b0f168da917e8d...