[PATCH] D116417: [clang][ObjC] Add fix it for missing methods in impl

2022-01-04 Thread David Goldman via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. dgoldman marked an inline comment as done. Closed by commit rGdd72ae3dcc68: [clang][ObjC] Add fix it for missing methods in impl (authored by dgoldman). Repository:

[PATCH] D116417: [clang][ObjC] Add fix it for missing methods in impl

2022-01-04 Thread David Goldman via Phabricator via cfe-commits
dgoldman marked an inline comment as done. dgoldman added inline comments. Comment at: clang/lib/Sema/SemaDeclObjC.cpp:2241 +method->print(Out, Policy); +Str.append(" {\n\n}\n\n"); + sammccall wrote: > sammccall wrote: > > nit: mixing string & output stre

[PATCH] D116417: [clang][ObjC] Add fix it for missing methods in impl

2022-01-04 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 397336. dgoldman marked 4 inline comments as done. dgoldman added a comment. Fixes for review Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116417/new/ https://reviews.llvm.org/D116417 Files: clang/lib/Sema

[PATCH] D116417: [clang][ObjC] Add fix it for missing methods in impl

2022-01-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Thanks, this looks good! Comment at: clang/lib/Sema/SemaDeclObjC.cpp:2237 +// a better place to put it. +std::string Str; +llvm::raw_string_ostream Out(Str); Str -> FixitStr The comment is IMO too verbose, maybe just "//

[PATCH] D116417: [clang][ObjC] Add fix it for missing methods in impl

2021-12-30 Thread David Goldman via Phabricator via cfe-commits
dgoldman updated this revision to Diff 396690. dgoldman added a comment. Add a test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116417/new/ https://reviews.llvm.org/D116417 Files: clang/lib/Sema/SemaDeclObjC.cpp clang/test/FixIt/fixit-objc-m

[PATCH] D116417: [clang][ObjC] Add fix it for missing methods in impl

2021-12-30 Thread David Goldman via Phabricator via cfe-commits
dgoldman created this revision. dgoldman requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. We suggest inserting the method with an empty body at the end of the implementation decl. Repository: rG LLVM Github Monorepo https://reviews.llvm