djasper accepted this revision. djasper added inline comments. This revision is now accepted and ready to land.
================ Comment at: lib/Format/TokenAnnotator.cpp:2275 + tok::kw_const) || + // "of" can only occur in a for loop, as a "const x of y". + (Left.is(Keywords.kw_of) && Left.Previous && ---------------- Maybe: // "of" is only a keyword if it appears after another identifier // (e.g. as "const x of y" in a for loop). https://reviews.llvm.org/D31698 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits