This is an archive of the discontinued LLVM Phabricator instance.

[clang-format][NFC] Skip stability test if input is pre-formatted
ClosedPublic

Authored by owenpan on Aug 26 2023, 3:28 AM.

Details

Summary

This shortens the run-time of FormatTests by about 10% on average (and by up to 50% if formatting would not change the input).

Diff Detail

Event Timeline

owenpan created this revision.Aug 26 2023, 3:28 AM
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptAug 26 2023, 3:28 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
owenpan requested review of this revision.Aug 26 2023, 3:28 AM
owenpan added inline comments.Aug 26 2023, 12:05 PM
clang/unittests/Format/FormatTestBase.h
88

Will fix it before landing.

This revision is now accepted and ready to land.Aug 26 2023, 1:29 PM