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

Commit 7f432611 authored by Myles Watson's avatar Myles Watson
Browse files

PDL: Inline ParseStruct functions

Bug: 138260498
Test: bluetooth_packet_parser_test
Change-Id: I9656f00bf3e1ca8a26def02df030ca1fa8f87151
parent 49ba8dc8
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 {