From d7329a18da8fa36e303d3568a9eea802f3c0d0ab Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Thu, 18 Apr 2024 12:19:47 +0300 Subject: [PATCH] Rename cppan frontend class. --- src/sw/driver/driver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sw/driver/driver.cpp b/src/sw/driver/driver.cpp index c39a491c..d9d7b300 100644 --- a/src/sw/driver/driver.cpp +++ b/src/sw/driver/driver.cpp @@ -283,7 +283,7 @@ struct SpecFileInput : Input, DriverInput } }; -struct InlineSpecInput : Input, DriverInput +struct InlineSpecInputCppan : Input, DriverInput { yaml root; @@ -293,7 +293,7 @@ struct InlineSpecInput : Input, DriverInput EntryPointPtr load1(SwContext &swctx) override { - SW_ASSERT(fe_type == FrontendType::Cppan, "not implemented"); + SW_ASSERT(fe_type == FrontendType::Cppan, "bad frontend"); auto fn = getSpecification().files.getData().begin()->second.absolute_path; auto p = fn; @@ -391,7 +391,7 @@ std::vector> Driver::detectInputs(const path &p, InputTyp auto spec = std::make_unique(f); // file has cpp extension - auto i = std::make_unique(swctx, *this, std::move(spec)); + auto i = std::make_unique(swctx, *this, std::move(spec)); i->fe_type = FrontendType::Cppan; LOG_TRACE(logger, "using inline " << toString(i->fe_type) << " frontend for input " << p); inputs.push_back(std::move(i)); @@ -408,7 +408,7 @@ std::vector> Driver::detectInputs(const path &p, InputTyp f.addFile("cppan.yml", p, c); auto spec = std::make_unique(f); - auto i = std::make_unique(swctx, *this, std::move(spec)); + auto i = std::make_unique(swctx, *this, std::move(spec)); i->fe_type = FrontendType::Cppan; i->root = YAML::Load(c); LOG_TRACE(logger, "using inline " << toString(i->fe_type) << " frontend for input " << p);