Skip to content

Commit c606121

Browse files
committed
C#: Move autogenerated comment to file level instead of having it on each class.
1 parent 52b59d0 commit c606121

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

misc/scripts/models-as-data/generate_flow_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ def readRows(self, bqrsFile):
133133

134134
def asCsvModel(self, superclass, kind, rows):
135135
classTemplate = """
136-
/**
137-
* THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
138-
*/
139136
private class {0}{1}Csv extends {2} {{
140137
override predicate row(string row) {{
141138
row =
@@ -170,7 +167,10 @@ def makeContent(self):
170167
sourceCsv = ""
171168

172169
return f"""
173-
/** Definitions of taint steps in the {self.shortname} framework */
170+
/**
171+
* THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
172+
* Definitions of taint steps in the {self.shortname} framework.
173+
*/
174174
175175
import {self.language}
176176
private import semmle.code.{self.language}.dataflow.ExternalFlow

0 commit comments

Comments
 (0)