This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix bugs in parsing C++20 module import statements
ClosedPublic

Authored by owenpan on Jan 21 2023, 7:54 PM.

Diff Detail

Event Timeline

owenpan created this revision.Jan 21 2023, 7:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 21 2023, 7:54 PM
owenpan requested review of this revision.Jan 21 2023, 7:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 21 2023, 7:54 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
owenpan updated this revision to Diff 491135.Jan 22 2023, 12:56 AM
owenpan retitled this revision from [clang-format] Fix a bug in parsing C++20 import statements to [clang-format] Fix bugs in parsing C++20 module import statements.
owenpan edited the summary of this revision. (Show Details)

Also fixed a potential bug in export import ....

owenpan updated this revision to Diff 491137.Jan 22 2023, 1:11 AM

Simplified parseModuleImport() a little bit.

owenpan updated this revision to Diff 491138.Jan 22 2023, 2:07 AM

Added test cases with import followed by comments.

MyDeveloperDay accepted this revision.Jan 22 2023, 3:15 PM
This revision is now accepted and ready to land.Jan 22 2023, 3:15 PM
owenpan updated this revision to Diff 491221.Jan 22 2023, 7:52 PM

Put back the inadvertently removed line nextToken();, which was just before the outer while loop in parseModuleImport().

This revision was landed with ongoing or failed builds.Jan 23 2023, 2:35 PM
This revision was automatically updated to reflect the committed changes.