Skip to content

Commit d4e5fa0

Browse files
Change comment placements to not break const_generator.py (#2906)
Signed-off-by: Naren Sirigere <sirigere.naren@gmail.com>
1 parent 55d1eef commit d4e5fa0

6 files changed

Lines changed: 32 additions & 35 deletions

File tree

include/capstone/arm.h

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -425,22 +425,20 @@ typedef enum arm_op_type {
425425
ARM_OP_IMM = CS_OP_IMM, ///< Immediate operand
426426
ARM_OP_FP = CS_OP_FP, ///< Floating-Point operand
427427
ARM_OP_PRED = CS_OP_PRED, ///< Predicate
428-
ARM_OP_CIMM =
429-
CS_OP_SPECIAL + 0, ///< C-Immediate (coprocessor registers)
430-
ARM_OP_PIMM =
431-
CS_OP_SPECIAL + 1, ///< P-Immediate (coprocessor registers)
428+
// C-Immediate (coprocessor registers)
429+
ARM_OP_CIMM = CS_OP_SPECIAL + 0,
430+
// P-Immediate (coprocessor registers)
431+
ARM_OP_PIMM = CS_OP_SPECIAL + 1,
432432
ARM_OP_SETEND = CS_OP_SPECIAL + 2, ///< operand for SETEND instruction
433433
ARM_OP_SYSREG = CS_OP_SPECIAL + 3, ///< MSR/MRS special register operand
434434
ARM_OP_BANKEDREG = CS_OP_SPECIAL + 4, ///< Banked register operand
435435
ARM_OP_SPSR = CS_OP_SPECIAL + 5, ///< Collection of SPSR bits
436436
ARM_OP_CPSR = CS_OP_SPECIAL + 6, ///< Collection of CPSR bits
437437
ARM_OP_SYSM = CS_OP_SPECIAL + 7, ///< Raw SYSm field
438-
ARM_OP_VPRED_R =
439-
CS_OP_SPECIAL +
440-
8, ///< Vector predicate. Leaves inactive lanes of output vector register unchanged.
441-
ARM_OP_VPRED_N =
442-
CS_OP_SPECIAL +
443-
9, ///< Vector predicate. Don't preserved inactive lanes of output register.
438+
// Vector predicate. Leaves inactive lanes of output vector register unchanged.
439+
ARM_OP_VPRED_R = CS_OP_SPECIAL + 8,
440+
// Vector predicate. Don't preserved inactive lanes of output register.
441+
ARM_OP_VPRED_N = CS_OP_SPECIAL + 9,
444442
ARM_OP_MEM = CS_OP_MEM, ///< Memory operand
445443
} arm_op_type;
446444

include/capstone/m68k.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,13 @@ typedef enum m68k_op_type {
118118
M68K_OP_INVALID = CS_OP_INVALID, ///< = CS_OP_INVALID (Uninitialized).
119119
M68K_OP_REG = CS_OP_REG, ///< = CS_OP_REG (Register operand).
120120
M68K_OP_IMM = CS_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
121-
M68K_OP_FP_SINGLE =
122-
CS_OP_SPECIAL + 0, ///< single precision Floating-Point operand
123-
M68K_OP_FP_DOUBLE =
124-
CS_OP_SPECIAL + 1, ///< double precision Floating-Point operand
121+
// single precision Floating-Point operand
122+
M68K_OP_FP_SINGLE = CS_OP_SPECIAL + 0,
123+
// double precision Floating-Point operand
124+
M68K_OP_FP_DOUBLE = CS_OP_SPECIAL + 1,
125125
M68K_OP_REG_BITS = CS_OP_SPECIAL + 2, ///< Register bits move
126-
M68K_OP_REG_PAIR =
127-
CS_OP_SPECIAL +
128-
3, ///< Register pair in the same op (upper 4 bits for first reg, lower for second)
126+
// Register pair in the same op (upper 4 bits for first reg, lower for second)
127+
M68K_OP_REG_PAIR = CS_OP_SPECIAL + 3,
129128
M68K_OP_BR_DISP = CS_OP_SPECIAL + 4, ///< Branch displacement
130129
M68K_OP_MEM = CS_OP_MEM, ///< = CS_OP_MEM (Memory operand).
131130
} m68k_op_type;

include/capstone/mos65xx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ typedef enum mos65xx_group_type {
171171

172172
/// Operand type for instruction's operands
173173
typedef enum mos65xx_op_type {
174-
MOS65XX_OP_INVALID =
175-
CS_OP_INVALID, ///< = CS_OP_INVALID (Uninitialized).
174+
// = CS_OP_INVALID (Uninitialized).
175+
MOS65XX_OP_INVALID = CS_OP_INVALID,
176176
MOS65XX_OP_REG = CS_OP_REG, ///< = CS_OP_REG (Register operand).
177177
MOS65XX_OP_IMM = CS_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
178178
MOS65XX_OP_MEM = CS_OP_MEM, ///< = CS_OP_MEM (Memory operand).

include/capstone/riscv.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ extern "C" {
2626

2727
//> Operand type for instruction's operands
2828
typedef enum riscv_op_type {
29-
RISCV_OP_INVALID = CS_OP_INVALID, // = CS_OP_INVALID (Uninitialized).
30-
RISCV_OP_REG = CS_OP_REG, // = CS_OP_REG (Register operand).
31-
RISCV_OP_IMM = CS_OP_IMM, // = CS_OP_IMM (Immediate operand).
32-
RISCV_OP_MEM = CS_OP_MEM, // = CS_OP_MEM (Memory operand).
33-
RISCV_OP_FP = CS_OP_FP, // = CS_OP_FP (FP immediate operand).
34-
RISCV_OP_CSR = CS_OP_SPECIAL // = Control and Status Register.
29+
RISCV_OP_INVALID = CS_OP_INVALID, ///< = CS_OP_INVALID (Uninitialized).
30+
RISCV_OP_REG = CS_OP_REG, ///< = CS_OP_REG (Register operand).
31+
RISCV_OP_IMM = CS_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
32+
RISCV_OP_MEM = CS_OP_MEM, ///< = CS_OP_MEM (Memory operand).
33+
RISCV_OP_FP = CS_OP_FP, ///< = CS_OP_FP (FP immediate operand).
34+
RISCV_OP_CSR = CS_OP_SPECIAL, ///< = Control and Status Register.
3535
} riscv_op_type;
3636

3737
// Instruction's operand referring to memory

include/capstone/sparc.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ typedef enum sparc_cc {
5252
SPARC_CC_FCC_E = 9 + SPARC_CC_FCC_BEGIN, // Equal
5353
SPARC_CC_FCC_UE = 10 + SPARC_CC_FCC_BEGIN, // Unordered or Equal
5454
SPARC_CC_FCC_GE = 11 + SPARC_CC_FCC_BEGIN, // Greater or Equal
55-
SPARC_CC_FCC_UGE =
56-
12 + SPARC_CC_FCC_BEGIN, // Unordered or Greater or Equal
55+
// Unordered or Greater or Equal
56+
SPARC_CC_FCC_UGE = 12 + SPARC_CC_FCC_BEGIN,
5757
SPARC_CC_FCC_LE = 13 + SPARC_CC_FCC_BEGIN, // Less or Equal
58-
SPARC_CC_FCC_ULE =
59-
14 + SPARC_CC_FCC_BEGIN, // Unordered or Less or Equal
58+
// Unordered or Less or Equal
59+
SPARC_CC_FCC_ULE = 14 + SPARC_CC_FCC_BEGIN,
6060
SPARC_CC_FCC_O = 15 + SPARC_CC_FCC_BEGIN, // Ordered
6161

6262
SPARC_CC_CPCC_BEGIN = 32, ///< Co-processor conditional branches
@@ -83,8 +83,8 @@ typedef enum sparc_cc {
8383
SPARC_CC_REG_LZ = 3 + SPARC_CC_REG_BEGIN, // Less than zero
8484
SPARC_CC_REG_NZ = 5 + SPARC_CC_REG_BEGIN, // Is not zero
8585
SPARC_CC_REG_GZ = 6 + SPARC_CC_REG_BEGIN, // Greater than zero
86-
SPARC_CC_REG_GEZ =
87-
7 + SPARC_CC_REG_BEGIN, // Greater than or equal to zero
86+
// Greater than or equal to zero
87+
SPARC_CC_REG_GEZ = 7 + SPARC_CC_REG_BEGIN,
8888

8989
SPARC_CC_UNDEF = 0xffff,
9090
} sparc_cc;

include/capstone/tms320c64x.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ extern "C" {
1717
#endif
1818

1919
typedef enum tms320c64x_op_type {
20-
TMS320C64X_OP_INVALID =
21-
CS_OP_INVALID, ///< = CS_OP_INVALID (Uninitialized).
20+
// = CS_OP_INVALID (Uninitialized).
21+
TMS320C64X_OP_INVALID = CS_OP_INVALID,
2222
TMS320C64X_OP_REG = CS_OP_REG, ///< = CS_OP_REG (Register operand).
2323
TMS320C64X_OP_IMM = CS_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
24-
TMS320C64X_OP_REGPAIR =
25-
CS_OP_SPECIAL + 0, ///< Register pair for double word ops
24+
// Register pair for double word ops
25+
TMS320C64X_OP_REGPAIR = CS_OP_SPECIAL + 0,
2626
TMS320C64X_OP_MEM = CS_OP_MEM, ///< = CS_OP_MEM (Memory operand).
2727
} tms320c64x_op_type;
2828

0 commit comments

Comments
 (0)