Implement --file-names-only (#8788)

* flatc builds and seems to work, some of the extra targets are having linker errors

* fix build system

* pipeline failures

* un-rename files

* refactor to use unique_ptr

* typo

* rm make_unique, add comments

* fix cmake

---------

Co-authored-by: Wouter van Oortmerssen <aardappel@gmail.com>
This commit is contained in:
Justin Davis
2025-12-02 23:37:06 -05:00
committed by GitHub
parent 0b60686e3d
commit a1e125af11
34 changed files with 207 additions and 210 deletions

View File

@@ -163,7 +163,8 @@ class DartGenerator : public BaseGenerator {
code += "\n";
code += kv->second;
if (!SaveFile(Filename(kv->first).c_str(), code, false)) {
if (!parser_.opts.file_saver->SaveFile(Filename(kv->first).c_str(), code,
false)) {
return false;
}
}