[PATCH] D96478: [clang][cli] Fix gcc warning (NFC)

Yang Fan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 19:09:26 PST 2021


nullptr.cpp updated this revision to Diff 322896.
nullptr.cpp added a comment.

Fix format


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96478

Files:
  clang/lib/Frontend/TestModuleFileExtension.cpp


Index: clang/lib/Frontend/TestModuleFileExtension.cpp
===================================================================
--- clang/lib/Frontend/TestModuleFileExtension.cpp
+++ clang/lib/Frontend/TestModuleFileExtension.cpp
@@ -128,9 +128,11 @@
                                                     new TestModuleFileExtension::Reader(this, Stream));
 }
 
-llvm::raw_ostream &clang::operator<<(llvm::raw_ostream &OS,
-                                     const TestModuleFileExtension &Extension) {
+namespace clang {
+llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
+                              const TestModuleFileExtension &Extension) {
   return OS << Extension.BlockName << ":" << Extension.MajorVersion << ":"
             << Extension.MinorVersion << ":" << Extension.Hashed << ":"
             << Extension.UserInfo;
 }
+} // namespace clang


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96478.322896.patch
Type: text/x-patch
Size: 856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210211/1495526d/attachment.bin>


More information about the cfe-commits mailing list