Lines Matching defs:comment
122 const GateRef inList[], GateType type, const char* comment)
143 if (comment != nullptr) {
144 AddComment(result, std::string(comment));
154 GateRef Circuit::NewGate(const GateMetaData *meta, const std::vector<GateRef> &inList, const char* comment)
156 return NewGate(meta, MachineType::NOVALUE, inList.size(), inList.data(), GateType::Empty(), comment);
160 const std::initializer_list<GateRef>& args, GateType type, const char* comment)
162 return NewGate(meta, machineType, args.size(), args.begin(), type, comment);
166 const std::vector<GateRef>& inList, GateType type, const char* comment)
168 return NewGate(meta, machineType, inList.size(), inList.data(), type, comment);
171 GateRef Circuit::NewGate(const GateMetaData *meta, MachineType machineType, GateType type, const char* comment)
173 return NewGate(meta, machineType, {}, type, comment);
427 Circuit::ScopedComment::ScopedComment(std::string &&str, std::string_view *comment)
428 : old_(*comment), comment_(comment)
430 if (comment->empty()) {
433 str_ = std::string{*comment} + " " + std::move(str);