sys: Fixed many clang tidy warnings and typos

This commit is contained in:
WerWolv
2022-03-04 20:52:39 +01:00
parent 57c449936f
commit 327e904dbc
64 changed files with 91 additions and 152 deletions

View File

@@ -90,8 +90,10 @@ namespace hex::pl {
auto preprocessedInclude = preprocessor.preprocess(file.readString(), /*initialRun =*/false);
if (!preprocessedInclude.has_value())
throw *preprocessor.m_error;
if (!preprocessedInclude.has_value()) {
auto error = *preprocessor.m_error;
throw error;
}
if (preprocessor.shouldOnlyIncludeOnce()) {
auto [iter, added] = this->m_onceIncludedFiles.insert(includePath);