[PATCH] D37299: [Modules] Add ability to specify module name to module file mapping in a file
Boris Kolpackov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 4 10:55:18 PDT 2017
boris marked 3 inline comments as done.
boris added a comment.
David, thanks for the review. Uploading the new revision (also rebased on HEAD).
================
Comment at: lib/Frontend/CompilerInvocation.cpp:1576
+ StringRef Str = Buf.get()->getBuffer();
+ for (size_t B(0), E(B); B < Str.size(); B = E + 1)
+ {
----------------
dblaikie wrote:
> Prefer copy init over direct init:
>
> for (size_t B = 0, E = 0;
>
> & probably != rather than < is more canonical/common in the LLVM codebase.
All done except the != change -- B can actually go one over size (see the npos case in the loop body).
https://reviews.llvm.org/D37299
More information about the cfe-commits
mailing list