@@ -3882,12 +3882,16 @@ enum CX_BinaryOperatorKind {
3882
3882
3883
3883
/**
3884
3884
* \brief Returns the operator code for the binary operator.
3885
+ *
3886
+ * @deprecated: use clang_getCursorBinaryOperatorKind instead.
3885
3887
*/
3886
3888
CINDEX_LINKAGE enum CX_BinaryOperatorKind
3887
3889
clang_Cursor_getBinaryOpcode (CXCursor C );
3888
3890
3889
3891
/**
3890
3892
* \brief Returns a string containing the spelling of the binary operator.
3893
+ *
3894
+ * @deprecated: use clang_getBinaryOperatorKindSpelling instead
3891
3895
*/
3892
3896
CINDEX_LINKAGE CXString
3893
3897
clang_Cursor_getBinaryOpcodeStr (enum CX_BinaryOperatorKind Op );
@@ -6671,73 +6675,74 @@ CINDEX_LINKAGE unsigned clang_visitCXXMethods(CXType T, CXFieldVisitor visitor,
6671
6675
*/
6672
6676
enum CXBinaryOperatorKind {
6673
6677
/** This value describes cursors which are not binary operators. */
6674
- CXBinaryOperator_Invalid ,
6678
+ CXBinaryOperator_Invalid = 0 ,
6675
6679
/** C++ Pointer - to - member operator. */
6676
- CXBinaryOperator_PtrMemD ,
6680
+ CXBinaryOperator_PtrMemD = 1 ,
6677
6681
/** C++ Pointer - to - member operator. */
6678
- CXBinaryOperator_PtrMemI ,
6682
+ CXBinaryOperator_PtrMemI = 2 ,
6679
6683
/** Multiplication operator. */
6680
- CXBinaryOperator_Mul ,
6684
+ CXBinaryOperator_Mul = 3 ,
6681
6685
/** Division operator. */
6682
- CXBinaryOperator_Div ,
6686
+ CXBinaryOperator_Div = 4 ,
6683
6687
/** Remainder operator. */
6684
- CXBinaryOperator_Rem ,
6688
+ CXBinaryOperator_Rem = 5 ,
6685
6689
/** Addition operator. */
6686
- CXBinaryOperator_Add ,
6690
+ CXBinaryOperator_Add = 6 ,
6687
6691
/** Subtraction operator. */
6688
- CXBinaryOperator_Sub ,
6692
+ CXBinaryOperator_Sub = 7 ,
6689
6693
/** Bitwise shift left operator. */
6690
- CXBinaryOperator_Shl ,
6694
+ CXBinaryOperator_Shl = 8 ,
6691
6695
/** Bitwise shift right operator. */
6692
- CXBinaryOperator_Shr ,
6696
+ CXBinaryOperator_Shr = 9 ,
6693
6697
/** C++ three-way comparison (spaceship) operator. */
6694
- CXBinaryOperator_Cmp ,
6698
+ CXBinaryOperator_Cmp = 10 ,
6695
6699
/** Less than operator. */
6696
- CXBinaryOperator_LT ,
6700
+ CXBinaryOperator_LT = 11 ,
6697
6701
/** Greater than operator. */
6698
- CXBinaryOperator_GT ,
6702
+ CXBinaryOperator_GT = 12 ,
6699
6703
/** Less or equal operator. */
6700
- CXBinaryOperator_LE ,
6704
+ CXBinaryOperator_LE = 13 ,
6701
6705
/** Greater or equal operator. */
6702
- CXBinaryOperator_GE ,
6706
+ CXBinaryOperator_GE = 14 ,
6703
6707
/** Equal operator. */
6704
- CXBinaryOperator_EQ ,
6708
+ CXBinaryOperator_EQ = 15 ,
6705
6709
/** Not equal operator. */
6706
- CXBinaryOperator_NE ,
6710
+ CXBinaryOperator_NE = 16 ,
6707
6711
/** Bitwise AND operator. */
6708
- CXBinaryOperator_And ,
6712
+ CXBinaryOperator_And = 17 ,
6709
6713
/** Bitwise XOR operator. */
6710
- CXBinaryOperator_Xor ,
6714
+ CXBinaryOperator_Xor = 18 ,
6711
6715
/** Bitwise OR operator. */
6712
- CXBinaryOperator_Or ,
6716
+ CXBinaryOperator_Or = 19 ,
6713
6717
/** Logical AND operator. */
6714
- CXBinaryOperator_LAnd ,
6718
+ CXBinaryOperator_LAnd = 20 ,
6715
6719
/** Logical OR operator. */
6716
- CXBinaryOperator_LOr ,
6720
+ CXBinaryOperator_LOr = 21 ,
6717
6721
/** Assignment operator. */
6718
- CXBinaryOperator_Assign ,
6722
+ CXBinaryOperator_Assign = 22 ,
6719
6723
/** Multiplication assignment operator. */
6720
- CXBinaryOperator_MulAssign ,
6724
+ CXBinaryOperator_MulAssign = 23 ,
6721
6725
/** Division assignment operator. */
6722
- CXBinaryOperator_DivAssign ,
6726
+ CXBinaryOperator_DivAssign = 24 ,
6723
6727
/** Remainder assignment operator. */
6724
- CXBinaryOperator_RemAssign ,
6728
+ CXBinaryOperator_RemAssign = 25 ,
6725
6729
/** Addition assignment operator. */
6726
- CXBinaryOperator_AddAssign ,
6730
+ CXBinaryOperator_AddAssign = 26 ,
6727
6731
/** Subtraction assignment operator. */
6728
- CXBinaryOperator_SubAssign ,
6732
+ CXBinaryOperator_SubAssign = 27 ,
6729
6733
/** Bitwise shift left assignment operator. */
6730
- CXBinaryOperator_ShlAssign ,
6734
+ CXBinaryOperator_ShlAssign = 28 ,
6731
6735
/** Bitwise shift right assignment operator. */
6732
- CXBinaryOperator_ShrAssign ,
6736
+ CXBinaryOperator_ShrAssign = 29 ,
6733
6737
/** Bitwise AND assignment operator. */
6734
- CXBinaryOperator_AndAssign ,
6738
+ CXBinaryOperator_AndAssign = 30 ,
6735
6739
/** Bitwise XOR assignment operator. */
6736
- CXBinaryOperator_XorAssign ,
6740
+ CXBinaryOperator_XorAssign = 31 ,
6737
6741
/** Bitwise OR assignment operator. */
6738
- CXBinaryOperator_OrAssign ,
6742
+ CXBinaryOperator_OrAssign = 32 ,
6739
6743
/** Comma operator. */
6740
- CXBinaryOperator_Comma
6744
+ CXBinaryOperator_Comma = 33 ,
6745
+ CXBinaryOperator_Last = CXBinaryOperator_Comma
6741
6746
};
6742
6747
6743
6748
/**
0 commit comments