ioeric added inline comments.
================ Comment at: clangd/index/SymbolYAML.cpp:140 llvm::yaml::Output Yout(OS); for (Symbol S : Symbols) // copy: Yout<< requires mutability. Yout<< S; ---------------- hokein wrote: > The function could be simplified by using the SymbolToYAML below. > > ``` > std::string Str; > for (const Symbol& S : Symbols) { > Str += SymbolToYAML(S); > } > ``` This saves two lines of code but would regress the performance, so I am inclined to the current approach. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D41730 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits