klimek added inline comments.

================
Comment at: lib/Tooling/Refactoring/ASTSelection.cpp:164
+  unsigned NumMatches = 0;
+  for (Decl *D : Context.getTranslationUnitDecl()->decls()) {
+    if (ObjCImplEndLoc.isValid() &&
----------------
arphaman wrote:
> klimek wrote:
> > Why don't we do this as part of TraverseDecl() in the visitor?
> I think it's easier to handle the Objective-C `@implementation` logic here, 
> unless there's some better way that I can't see ATM.
Ok, in that case, can you write a comment at the start of the loop explaining 
that we basically only do that for the Objective-C @implementation? (I'd also 
like to understand that better in general, as I have no clue about Obj-C :)


Repository:
  rL LLVM

https://reviews.llvm.org/D35012



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to