Skip to content

Commit be6d91c

Browse files
mingodadrobertoraggi
authored andcommitted
Add a comment in generated files pointing out the script generator
1 parent 96d076e commit be6d91c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+100
-35
lines changed

packages/cxx-frontend/src/AST.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generated file by: gen_ast_ts.ts
12
// Copyright (c) 2025 Roberto Raggi <[email protected]>
23
//
34
// Permission is hereby granted, free of charge, to any person obtaining a copy

packages/cxx-frontend/src/ASTKind.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generated file by: gen_ast_kind_ts.ts
12
// Copyright (c) 2025 Roberto Raggi <[email protected]>
23
//
34
// Permission is hereby granted, free of charge, to any person obtaining a copy

packages/cxx-frontend/src/ASTSlot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generated file by: gen_ast_slot_ts.ts
12
// Copyright (c) 2025 Roberto Raggi <[email protected]>
23
//
34
// Permission is hereby granted, free of charge, to any person obtaining a copy

packages/cxx-frontend/src/ASTVisitor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generated file by: gen_ast_visitor_ts.ts
12
// Copyright (c) 2025 Roberto Raggi <[email protected]>
23
//
34
// Permission is hereby granted, free of charge, to any person obtaining a copy

packages/cxx-frontend/src/RecursiveASTVisitor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generated file by: gen_ast_recursive_visitor_ts.ts
12
// Copyright (c) 2025 Roberto Raggi <[email protected]>
23
//
34
// Permission is hereby granted, free of charge, to any person obtaining a copy

packages/cxx-frontend/src/TokenKind.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Generated file by: gen_tokenkind_ts.ts
12
// Copyright (c) 2025 Roberto Raggi <[email protected]>
23
//
34
// Permission is hereby granted, free of charge, to any person obtaining a copy

packages/cxx-gen-ast/src/gen_ast_cc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export function gen_ast_cc({ ast, output }: { ast: AST; output: string }) {
7171
emit(` return kASTKindNames[int(kind)];`);
7272
emit(`}`);
7373

74-
const out = `${cpy_header}
74+
const out = `// Generated file by: gen_ast_cc.ts
75+
${cpy_header}
7576
#include <cxx/ast.h>
7677
7778
namespace cxx {

packages/cxx-gen-ast/src/gen_ast_decoder_cc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ export function gen_ast_decoder_cc({
148148
});
149149
});
150150

151-
const out = `${cpy_header}
151+
const out = `// Generated file by: gen_ast_decoder_cc.ts
152+
${cpy_header}
152153
#include <cxx/private/ast_decoder.h>
153154
154155
// cxx

packages/cxx-gen-ast/src/gen_ast_decoder_h.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export function gen_ast_decoder_h({
7070
emit(` Arena* pool_ = nullptr;`);
7171
emit(`};`);
7272

73-
const out = `${cpy_header}
73+
const out = `// Generated file by: gen_ast_decoder_h.ts
74+
${cpy_header}
7475
#pragma once
7576
7677
#include <cxx/ast_fwd.h>

packages/cxx-gen-ast/src/gen_ast_encoder_cc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ export function gen_ast_encoder_cc({
191191
});
192192
});
193193

194-
const out = `${cpy_header}
194+
const out = `// Generated file by: gen_ast_encoder_cc.ts
195+
${cpy_header}
195196
#include <cxx/private/ast_encoder.h>
196197
197198
// cxx

0 commit comments

Comments
 (0)