[PATCH] D19106: Fixed a bug in AnnotatedLine::startsWith when there are comments in the line.

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 11:42:14 PDT 2016

djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.

Looks good.

Comment at: lib/Format/TokenAnnotator.h:128
@@ +127,3 @@
+  bool startsWithInternal(const FormatToken *Tok, A K1) const {
+    // Even though we skip comments in the outter `startWithInternal` function,
+    // this loop is still necessary if it is invoked by the public interface


More information about the cfe-commits mailing list