djasper added inline comments.
================ Comment at: lib/Format/Format.cpp:1449 const AdditionalKeywords &Keywords) { + for (auto Line : AnnotatedLines) + if (LineContainsObjCCode(*Line, Keywords)) ---------------- 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). ================ Comment at: lib/Format/Format.cpp:1455 + + static bool LineContainsObjCCode(const AnnotatedLine &Line, + const AdditionalKeywords &Keywords) { ---------------- Convention would be lineContainsObjCCode. 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