MyDeveloperDay added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1055-1077
+ while (FormatTok) {
+ if (FormatTok->is(tok::colon)) {
+ FormatTok->setType(TT_ModulePartitionColon);
+ }
+ // Handle import <foo/bar.h> as we would an include statement
+ else if (FormatTok->is(tok::less)) {
+ nextToken();
----------------
MyDeveloperDay wrote:
> owenpan wrote:
> > Possible infinite loops if the `import` statement is the last line and not
> > terminated by a `;`?
> won't FormatTok become null at eof?
ok I see this..
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114151/new/
https://reviews.llvm.org/D114151
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits