[PATCH] D79293: [clang-format] [PR45218] Fix an issue where < and > and >> in a for loop gets incorrectly interpreted at a TemplateOpener/Closer

Ryan Mansfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat May 2 13:14:50 PDT 2020


rmansfield added a comment.

Couple examples:

void foo(int x) { 
 for (unsigned int i = 0; i < x >> 1; i++) { }
}

and

int i = 0;

if (i < x >> 1) {}

}


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79293/new/

https://reviews.llvm.org/D79293





More information about the cfe-commits mailing list