================
@@ -132,7 +132,7 @@ static StringRef 
GetNthLineOfFile(std::optional<llvm::MemoryBufferRef> Buffer,
 
 static std::string NormalizeLine(const SourceManager &SM, const FullSourceLoc 
&L,
                                  const LangOptions &LangOpts) {
-  static StringRef Whitespaces = " \t\n";
+  constexpr StringRef Whitespaces = " \t\n";
----------------
efriedma-quic wrote:

We don't usually mark local variables constexpr... but I guess it doesn't 
matter that much.

https://github.com/llvm/llvm-project/pull/183287
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to