[PATCH] D158925: [clang-format][NFC] Skip stability test if input is pre-formatted
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 26 12:05:13 PDT 2023
owenpan added inline comments.
================
Comment at: clang/unittests/Format/FormatTestBase.h:88
testing::ScopedTrace t(File, Line, ::testing::Message() << Code.str());
- EXPECT_EQ(Expected.str(),
- format(Expected, Style, SC_ExpectComplete, Ranges))
- << "Expected code is not stable";
+ if (!Expected.equals(Code)) {
+ EXPECT_EQ(Expected.str(),
----------------
Will fix it before landing.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158925/new/
https://reviews.llvm.org/D158925
More information about the cfe-commits
mailing list