Ensure includes are sorted local first
This commit is contained in:
1 parent
b7264e20f2
commit
f3fc2d5c41
1 file changed
+1
-1
@@ -258,7 +258,7 @@ def get_datatype_string(_type: CDataType) -> str:
|
||||
|
||||
def _get_includes_string(includes: list[CInclude]) -> str:
|
||||
output = ""
|
||||
for include in includes:
|
||||
for include in sorted(includes, key=lambda inc: inc.local, reverse=True):
|
||||
output += str(include)
|
||||
if len(output) > 0:
|
||||
output += "\n"
|
||||
|
||||
Reference in new issue
Block a user