Skip to content

Commit 7bf5ed3

Browse files
committed
feat(build): add warning check and paginated warning output
2 parents 60fd590 + 78dd94a commit 7bf5ed3

3 files changed

Lines changed: 343 additions & 12 deletions

File tree

include/vix/cli/process/Process.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,14 @@ namespace vix::cli::process
165165

166166
bool singleCpp = false;
167167
fs::path cppFile;
168+
169+
bool warnings{false};
170+
std::size_t warningsPage{1};
171+
std::size_t warningsLimit{10};
172+
bool warningsPageSet{false};
173+
bool warningsLimitSet{false};
174+
175+
bool warningCheck{false};
168176
};
169177

170178
/**

src/build/BuildStyle.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,9 +818,9 @@ namespace vix::cli::build
818818

819819
out << " "
820820
<< colorize(style::GRAY, "hint:")
821-
<< " run with "
822-
<< colorize(style::CYAN, "--verbose")
823-
<< " for full compiler output"
821+
<< " run "
822+
<< colorize(style::CYAN, "vix build --warnings")
823+
<< " to view all warnings"
824824
<< "\n\n";
825825
}
826826

0 commit comments

Comments
 (0)