dexonsmith created this revision. dexonsmith added reviewers: jansvoboda11, JDevlieghere, akyrtzi. Herald added a subscriber: ributzka. dexonsmith requested review of this revision. Herald added a project: clang.
Initialize the fields inline instead of having to manually write out a default constructor. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D92597 Files: clang/lib/ARCMigrate/ObjCMT.cpp Index: clang/lib/ARCMigrate/ObjCMT.cpp =================================================================== --- clang/lib/ARCMigrate/ObjCMT.cpp +++ clang/lib/ARCMigrate/ObjCMT.cpp @@ -2034,12 +2034,10 @@ namespace { struct EditEntry { - const FileEntry *File; - unsigned Offset; - unsigned RemoveLen; + const FileEntry *File = nullptr; + unsigned Offset = 0; + unsigned RemoveLen = 0; std::string Text; - - EditEntry() : File(), Offset(), RemoveLen() {} }; } // end anonymous namespace
Index: clang/lib/ARCMigrate/ObjCMT.cpp =================================================================== --- clang/lib/ARCMigrate/ObjCMT.cpp +++ clang/lib/ARCMigrate/ObjCMT.cpp @@ -2034,12 +2034,10 @@ namespace { struct EditEntry { - const FileEntry *File; - unsigned Offset; - unsigned RemoveLen; + const FileEntry *File = nullptr; + unsigned Offset = 0; + unsigned RemoveLen = 0; std::string Text; - - EditEntry() : File(), Offset(), RemoveLen() {} }; } // end anonymous namespace
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits