clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I2ee8cbc4581d0c3ccdc130b646357c45fa0373db
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tools/test/tools_pci_unittest.cpp b/tools/test/tools_pci_unittest.cpp
index c3ce610..96a204a 100644
--- a/tools/test/tools_pci_unittest.cpp
+++ b/tools/test/tools_pci_unittest.cpp
@@ -338,8 +338,8 @@
INSTANTIATE_TEST_SUITE_P(Default, PciSetupTest,
::testing::Values(&nuvotonDevice, &aspeedDevice),
[](const testing::TestParamInfo<Device*>& info) {
- return info.param->getName();
- });
+ return info.param->getName();
+});
TEST(NuvotonWriteTest, TooLarge)
{
@@ -660,8 +660,8 @@
{
std::vector<std::uint8_t> enabledRegion(mockRegionSize);
- enabledRegion[AspeedDevice::config] =
- defaultVal | AspeedDevice::bridgeEnabled;
+ enabledRegion[AspeedDevice::config] = defaultVal |
+ AspeedDevice::bridgeEnabled;
EXPECT_THAT(region, ContainerEq(enabledRegion));
}
@@ -689,13 +689,13 @@
expectSetup(pciMock, dev, &aspeedDevice, region.data());
/* Setting skipBridgeDisable to true */
- std::unique_ptr<PciBridgeIntf> bridge =
- aspeedDevice.getBridge(&pciMock, true);
+ std::unique_ptr<PciBridgeIntf> bridge = aspeedDevice.getBridge(&pciMock,
+ true);
{
std::vector<std::uint8_t> enabledRegion(mockRegionSize);
- enabledRegion[AspeedDevice::config] =
- defaultVal | AspeedDevice::bridgeEnabled;
+ enabledRegion[AspeedDevice::config] = defaultVal |
+ AspeedDevice::bridgeEnabled;
EXPECT_THAT(region, ContainerEq(enabledRegion));
}
@@ -703,8 +703,8 @@
{
std::vector<std::uint8_t> disabledRegion(mockRegionSize);
- disabledRegion[AspeedDevice::config] =
- defaultVal | AspeedDevice::bridgeEnabled;
+ disabledRegion[AspeedDevice::config] = defaultVal |
+ AspeedDevice::bridgeEnabled;
EXPECT_THAT(region, ContainerEq(disabledRegion));
}
}
@@ -726,8 +726,8 @@
{
std::vector<std::uint8_t> enabledRegion(mockRegionSize);
- enabledRegion[AspeedDevice::config] =
- defaultVal | AspeedDevice::bridgeEnabled;
+ enabledRegion[AspeedDevice::config] = defaultVal |
+ AspeedDevice::bridgeEnabled;
EXPECT_THAT(region, ContainerEq(enabledRegion));
}