Skip to content

Commit ba68dfa

Browse files
pre-commit-ci[bot]ebrevdo
authored andcommitted
style: pre-commit fixes
1 parent 7e7312b commit ba68dfa

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

tests/unittests/DriverTests.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@ TEST_CASE("Driver macro include actual resumes multiple times") {
468468
Driver driver;
469469
driver.addStandardArgs();
470470

471-
auto args =
472-
fmt::format("testfoo -I \"{0}import_include_error\" \"{0}import_include_error/top_dual.sv\" "
473-
"\"{0}import_include_error/dual_compute_unit.sv\"",
474-
findTestDir());
471+
auto args = fmt::format(
472+
"testfoo -I \"{0}import_include_error\" \"{0}import_include_error/top_dual.sv\" "
473+
"\"{0}import_include_error/dual_compute_unit.sv\"",
474+
findTestDir());
475475
CHECK(driver.parseCommandLine(args));
476476
CHECK(driver.processOptions());
477477
CHECK(driver.parseAllSources());
@@ -486,10 +486,10 @@ TEST_CASE("Driver nested macro include recursion parses successfully") {
486486
Driver driver;
487487
driver.addStandardArgs();
488488

489-
auto args =
490-
fmt::format("testfoo -I \"{0}import_include_error\" \"{0}import_include_error/top_nested.sv\" "
491-
"\"{0}import_include_error/dual_compute_unit.sv\"",
492-
findTestDir());
489+
auto args = fmt::format(
490+
"testfoo -I \"{0}import_include_error\" \"{0}import_include_error/top_nested.sv\" "
491+
"\"{0}import_include_error/dual_compute_unit.sv\"",
492+
findTestDir());
493493
CHECK(driver.parseCommandLine(args));
494494
CHECK(driver.processOptions());
495495
CHECK(driver.parseAllSources());

tests/unittests/FileTests.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ TEST_CASE("Directory globbing") {
185185
globAndCheck(testDir, "system", GlobMode::Directories, GlobRank::ExactPath, {}, {"system"});
186186
globAndCheck(testDir, "system/", GlobMode::Directories, GlobRank::ExactPath, {}, {"system"});
187187
globAndCheck(testDir, ".../", GlobMode::Directories, GlobRank::Directory, {},
188-
{"library", "nested", "system", "data", "libtest",
189-
"import_include_error"});
188+
{"library", "nested", "system", "data", "libtest", "import_include_error"});
190189
globAndCheck(testDir, testDir + "/library/pkg.sv", GlobMode::Directories, GlobRank::ExactPath,
191190
make_error_code(std::errc::not_a_directory), {});
192191
}

tests/unittests/parsing/PreprocessorTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// SPDX-License-Identifier: MIT
33

44
#include "Test.h"
5+
#include <cctype>
6+
#include <ranges>
57

68
#include "slang/parsing/Preprocessor.h"
79
#include "slang/syntax/AllSyntax.h"
810
#include "slang/syntax/SyntaxPrinter.h"
911
#include "slang/text/SourceManager.h"
10-
#include <cctype>
11-
#include <ranges>
1212

1313
void trimTrailingWhitespace(std::string& str) {
1414
size_t off = 0;

0 commit comments

Comments
 (0)