This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix crash on asm block with label
ClosedPublic

Authored by HazardyKnusperkeks on Mar 13 2022, 2:15 PM.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2022, 2:15 PM
HazardyKnusperkeks requested review of this revision.Mar 13 2022, 2:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2022, 2:15 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
curdeius accepted this revision.Mar 13 2022, 2:30 PM
This revision is now accepted and ready to land.Mar 13 2022, 2:30 PM
owenpan accepted this revision.Mar 13 2022, 5:36 PM
owenpan added inline comments.
clang/lib/Format/TokenAnnotator.cpp
829
clang/unittests/Format/TokenAnnotatorTest.cpp
613

This patch also fixed 4 out of 6 of the same assertion failures on the .c files under clang/test. The remaining two are:

  1. Analysis/inline-plist.c (#54367)
  2. Sema/attr-external-source-symbol.c (54368)
HazardyKnusperkeks marked 2 inline comments as done.Mar 14 2022, 4:42 AM
This revision was landed with ongoing or failed builds.Mar 14 2022, 4:45 AM
This revision was automatically updated to reflect the committed changes.