-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
281 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: CapstoneEngine | ||
Upstream-Contact: <> | ||
Source: https://github.com/capstone-engine/capstone | ||
|
||
# Sample paragraph, commented out: | ||
# | ||
# Files: src/* | ||
# Copyright: $YEAR $NAME <$CONTACT> | ||
# License: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: CapstoneEngine | ||
Source: https://github.com/capstone-engine/capstone | ||
|
||
Files: src/autosync/cpptranslator/Tests/test_config.json | ||
Copyright: 2022 Rot127 <[email protected]> | ||
License: BSD-3 | ||
|
||
Files: src/autosync/cpptranslator/arch_config.json | ||
Copyright: 2022 Rot127 <[email protected]> | ||
License: BSD-3 | ||
|
||
Files: src/autosync/cpptranslator/saved_patches.json | ||
Copyright: 2022 Rot127 <[email protected]> | ||
License: BSD-3 | ||
|
||
Files: src/autosync/path_vars.json | ||
Copyright: 2022 Rot127 <[email protected]> | ||
License: BSD-3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% for copyright_line in copyright_lines %} | ||
{{ copyright_line }} | ||
{% endfor %} | ||
{% for contributor_line in contributor_lines %} | ||
SPDX-FileContributor: {{ contributor_line }} | ||
{% endfor %} | ||
{% for expression in spdx_expressions %} | ||
SPDX-License-Identifier: {{ expression }} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Copyright (c) <year> <owner>. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
<!-- | ||
Copyright © 2022 Rot127 <[email protected]> | ||
Copyright © 2024 2022 Rot127 <[email protected]> | ||
SPDX-License-Identifier: BSD-3 | ||
--> | ||
|
||
# Architecture updater | ||
|
||
This is Capstones updater for some architectures. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# Copyright © 2024 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
[project] | ||
name = "autosync" | ||
version = "0.1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import argparse | ||
|
||
import logging as log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import argparse | ||
import logging as log | ||
import re | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import hashlib | ||
import logging as log | ||
import shutil | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import logging as log | ||
import os | ||
import re | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import json | ||
import logging as log | ||
import re | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import json | ||
import logging as log | ||
from pathlib import Path | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import argparse | ||
import logging as log | ||
import sys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import argparse | ||
import difflib as dl | ||
import json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
<!-- | ||
Copyright © 2022 Rot127 <[email protected]> | ||
SPDX-License-Identifier: BSD-3 | ||
--> | ||
|
||
# C++ Translator | ||
|
||
Capstone uses source files from LLVM to disassemble opcodes. | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/TemplateCollector.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import logging as log | ||
import re | ||
from pathlib import Path | ||
|
4 changes: 4 additions & 0 deletions
4
suite/auto-sync/src/autosync/cpptranslator/Tests/test_patches.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
# SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
import unittest | ||
from pathlib import Path | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/AddCSDetail.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import logging as log | ||
import re | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/AddOperand.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Patch import Patch | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/BitCastStdArray.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/CheckDecoderStatus.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/ClassConstructorDef.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Patch import Patch | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/ClassesDef.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import logging as log | ||
import re | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/ConstMCInstParameter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/ConstMCOperand.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/CppInitCast.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/CreateOperand0.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import re | ||
|
||
from tree_sitter import Node | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/CreateOperand1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import re | ||
|
||
from tree_sitter import Node | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/DeclarationInConditionClause.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_capture_node, get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/DecodeInstruction.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/DecoderCast.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Patch import Patch | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/DecoderParameter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Patch import Patch | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/FallThrough.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Patch import Patch | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/FeatureBits.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_MCInst_var_name, get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/FeatureBitsDecl.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Patch import Patch | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/FieldFromInstr.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import logging as log | ||
import re | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/GetNumOperands.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/GetOpcode.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/GetOperand.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/GetOperandRegImm.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_capture_node, get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/GetRegClass.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import ( | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/GetRegFromClass.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_capture_node, get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/GetSubReg.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_MCInst_var_name, get_text | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import logging as log | ||
import re | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/Includes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
import logging as log | ||
|
||
from tree_sitter import Node | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/InlineToStaticInline.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/IsOptionalDef.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/IsPredicate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
3 changes: 3 additions & 0 deletions
3
suite/auto-sync/src/autosync/cpptranslator/patches/IsRegImm.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Copyright © 2022 Rot127 <[email protected]> | ||
# SPDX-License-Identifier: BSD-3 | ||
|
||
from tree_sitter import Node | ||
|
||
from autosync.cpptranslator.patches.Helper import get_text | ||
|
Oops, something went wrong.