Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions maldoca/astgen/ast_source_printer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ void AstSourcePrinter::PrintConstructor(const NodeDef& node,
}

Print(")");
if (!ancestor->aggregated_fields().empty()) {
Print(" /* NOLINT */");
}
}

for (const FieldDef& field : node.fields()) {
Expand Down
10 changes: 5 additions & 5 deletions maldoca/astgen/test/multiple_inheritance/ast.generated.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void MNode::set_loc(std::unique_ptr<MSourceLocation> loc) {
MFunction::MFunction(
std::unique_ptr<MSourceLocation> loc,
std::string id)
: MNode(std::move(loc)),
: MNode(std::move(loc)) /* NOLINT */,
id_(std::move(id)) {}

absl::string_view MFunction::id() const {
Expand All @@ -131,7 +131,7 @@ void MFunction::set_id(std::string id) {
MObjectMember::MObjectMember(
std::unique_ptr<MSourceLocation> loc,
bool computed)
: MNode(std::move(loc)),
: MNode(std::move(loc)) /* NOLINT */,
computed_(std::move(computed)) {}

bool MObjectMember::computed() const {
Expand All @@ -150,9 +150,9 @@ MObjectMethod::MObjectMethod(
std::unique_ptr<MSourceLocation> loc,
bool computed,
std::string id)
: MNode(std::move(loc)),
MObjectMember(std::move(loc), std::move(computed)),
MFunction(std::move(loc), std::move(id)) {}
: MNode(std::move(loc)) /* NOLINT */,
MObjectMember(std::move(loc), std::move(computed)) /* NOLINT */,
MFunction(std::move(loc), std::move(id)) /* NOLINT */ {}

// clang-format on
// NOLINTEND(whitespace/line_length)
Expand Down
Loading
Loading