benhamilton added inline comments.
================ Comment at: lib/Format/Format.cpp:1449 const AdditionalKeywords &Keywords) { + for (auto Line : AnnotatedLines) + if (LineContainsObjCCode(*Line, Keywords)) ---------------- djasper wrote: > I would not create a second function here. Just iterate over the tokens here > and call guessIsObjC recursively with Line->Children. That means we need one > less for loop overall, I think (I might be missing something). Good call, done. I don't know why I didn't do that first! For some reason, my brain thought `Line.Children` was an incompatible type.. ================ Comment at: lib/Format/Format.cpp:1455 + + static bool LineContainsObjCCode(const AnnotatedLine &Line, + const AdditionalKeywords &Keywords) { ---------------- djasper wrote: > Convention would be lineContainsObjCCode. Removed. Repository: rC Clang https://reviews.llvm.org/D44831 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits