[llvm] [NFC][LLVM][Support] Misc code cleanup in ScopedPrinter (PR #161462)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 08:26:22 PDT 2025


================
@@ -220,59 +220,59 @@ class LLVM_ABI ScopedPrinter {
   }
 
   virtual void printNumber(StringRef Label, char Value) {
-    startLine() << Label << ": " << static_cast<int>(Value) << "\n";
+    startLine() << Label << ": " << static_cast<int>(Value) << '\n';
----------------
nikic wrote:

I agree with the LLVM CS that you generally don't want to use `std::endl`. However, I don't think you should be going out of your way to replace `"\n"` with `'\n'` in existing code, when this is not the predominant coding style.

https://github.com/llvm/llvm-project/pull/161462


More information about the llvm-commits mailing list