Skip to content

Commit

Permalink
Workaround for latest clang versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxhy committed Jan 29, 2024
1 parent 0940a46 commit c0779dc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions sources/scripts/lla.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,16 @@ def write_shared_ptr(all_types):
all_types = list(all_types)
all_types.sort()
for t in all_types:
lines.insert(i, "%shared_ptr(" + t + ");" + "\n")
i += 1
# Temporary workaround for latest clang versions, we should better call libclang instead
if "(unnamed struct at" not in t:
lines.insert(i, "%shared_ptr(" + t + ");" + "\n")
i += 1
for t in all_types:
print('SPTR: {}'.format(t))
lines.insert(i, "%shared_ptr(" + t.replace('logicalaccess::', '') + ");" + "\n")
i += 1
# Temporary workaround for latest clang versions, we should better call libclang instead
if "(unnamed struct at" not in t:
lines.insert(i, "%shared_ptr(" + t.replace('logicalaccess::', '') + ");" + "\n")
i += 1
with open(path, "w") as f:
f.write(''.join(lines))

Expand Down

0 comments on commit c0779dc

Please sign in to comment.