Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9e2ab93 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

PDL: Inline ParseStruct functions

am: 7f432611

Change-Id: Ie78fca2eb7bf2a3d8d5fffe06f30e0a8e489d969
parents b341bfd4 7f432611
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ void StructParserGenerator::Generate(std::ostream& s) const {
  for (const auto& node : variable_struct_fields_) {
    if (node.children_.size() > 0) {
      auto field = node.packet_field_;
      s << "std::unique_ptr<" << node.struct_def_->name_ << "> Parse" << node.struct_def_->name_;
      s << "inline std::unique_ptr<" << node.struct_def_->name_ << "> Parse" << node.struct_def_->name_;
      if (is_little_endian) {
        s << "(Iterator<kLittleEndian> to_bound) {";
      } else {