[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:20:09 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:

Hm, I believe the `<< "\n"` pattern is considered more idiomatic. grep says it's much more prevalent in the LLVM codebase (by a factor of 2.4).

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


More information about the llvm-commits mailing list