sammccall accepted this revision.
sammccall added a comment.

Still LG



================
Comment at: clang-tools-extra/clangd/CompileCommands.cpp:250
     auto It = llvm::find(Cmd, "--");
     for (std::string &Arg : ToAppend)
       Cmd.insert(It++, std::move(Arg));
----------------
hmm, why isn't this `Cmd.insert(It, ToAppend.begin(), ToAppend.end())` instead 
of the loop, to avoid shuffling the tail elements?

Or in fact `Cmd.insert(It, std::make_move_iterator(ToAppend.begin()), 
std::make_move_iterator(ToAppend.end()));`?


================
Comment at: clang-tools-extra/clangd/CompileCommands.cpp:256
+    bool FollowSymlink =
+        !ArgList.hasArgNoClaim(driver::options::OPT_no_canonical_prefixes);
     Cmd.front() =
----------------
you reverted the others to Has but keps the ArgList reference here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106527/new/

https://reviews.llvm.org/D106527

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to