[PATCH] D49890: Clang-Tidy Export Problem
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 26 17:52:13 PDT 2018
Eugene.Zelenko added inline comments.
================
Comment at: ClangTidy.cpp:620
+ llvm::StringMap<ClangTidyError> SingleErrors;
+ for (const ClangTidyError &Error : Errors) {
+ if (!Error.BuildDirectory.empty()) {
----------------
You could use auto, since it's iterator over container.
================
Comment at: ClangTidy.cpp:621
+ for (const ClangTidyError &Error : Errors) {
+ if (!Error.BuildDirectory.empty()) {
+ FileSystem.setCurrentWorkingDirectory(Error.BuildDirectory);
----------------
Curly braces are not necessary.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D49890
More information about the cfe-commits
mailing list