@@ -3839,59 +3839,6 @@ enum CX_StorageClass {
3839
3839
CX_SC_Register
3840
3840
};
3841
3841
3842
- /**
3843
- * Represents a specific kind of binary operator which can appear at a cursor.
3844
- */
3845
- enum CX_BinaryOperatorKind {
3846
- CX_BO_Invalid = 0 ,
3847
- CX_BO_PtrMemD = 1 ,
3848
- CX_BO_PtrMemI = 2 ,
3849
- CX_BO_Mul = 3 ,
3850
- CX_BO_Div = 4 ,
3851
- CX_BO_Rem = 5 ,
3852
- CX_BO_Add = 6 ,
3853
- CX_BO_Sub = 7 ,
3854
- CX_BO_Shl = 8 ,
3855
- CX_BO_Shr = 9 ,
3856
- CX_BO_Cmp = 10 ,
3857
- CX_BO_LT = 11 ,
3858
- CX_BO_GT = 12 ,
3859
- CX_BO_LE = 13 ,
3860
- CX_BO_GE = 14 ,
3861
- CX_BO_EQ = 15 ,
3862
- CX_BO_NE = 16 ,
3863
- CX_BO_And = 17 ,
3864
- CX_BO_Xor = 18 ,
3865
- CX_BO_Or = 19 ,
3866
- CX_BO_LAnd = 20 ,
3867
- CX_BO_LOr = 21 ,
3868
- CX_BO_Assign = 22 ,
3869
- CX_BO_MulAssign = 23 ,
3870
- CX_BO_DivAssign = 24 ,
3871
- CX_BO_RemAssign = 25 ,
3872
- CX_BO_AddAssign = 26 ,
3873
- CX_BO_SubAssign = 27 ,
3874
- CX_BO_ShlAssign = 28 ,
3875
- CX_BO_ShrAssign = 29 ,
3876
- CX_BO_AndAssign = 30 ,
3877
- CX_BO_XorAssign = 31 ,
3878
- CX_BO_OrAssign = 32 ,
3879
- CX_BO_Comma = 33 ,
3880
- CX_BO_LAST = CX_BO_Comma
3881
- };
3882
-
3883
- /**
3884
- * \brief Returns the operator code for the binary operator.
3885
- */
3886
- CINDEX_LINKAGE enum CX_BinaryOperatorKind
3887
- clang_Cursor_getBinaryOpcode (CXCursor C );
3888
-
3889
- /**
3890
- * \brief Returns a string containing the spelling of the binary operator.
3891
- */
3892
- CINDEX_LINKAGE CXString
3893
- clang_Cursor_getBinaryOpcodeStr (enum CX_BinaryOperatorKind Op );
3894
-
3895
3842
/**
3896
3843
* Returns the storage class for a function or variable declaration.
3897
3844
*
@@ -6671,73 +6618,74 @@ CINDEX_LINKAGE unsigned clang_visitCXXMethods(CXType T, CXFieldVisitor visitor,
6671
6618
*/
6672
6619
enum CXBinaryOperatorKind {
6673
6620
/** This value describes cursors which are not binary operators. */
6674
- CXBinaryOperator_Invalid ,
6621
+ CXBinaryOperator_Invalid = 0 ,
6675
6622
/** C++ Pointer - to - member operator. */
6676
- CXBinaryOperator_PtrMemD ,
6623
+ CXBinaryOperator_PtrMemD = 1 ,
6677
6624
/** C++ Pointer - to - member operator. */
6678
- CXBinaryOperator_PtrMemI ,
6625
+ CXBinaryOperator_PtrMemI = 2 ,
6679
6626
/** Multiplication operator. */
6680
- CXBinaryOperator_Mul ,
6627
+ CXBinaryOperator_Mul = 3 ,
6681
6628
/** Division operator. */
6682
- CXBinaryOperator_Div ,
6629
+ CXBinaryOperator_Div = 4 ,
6683
6630
/** Remainder operator. */
6684
- CXBinaryOperator_Rem ,
6631
+ CXBinaryOperator_Rem = 5 ,
6685
6632
/** Addition operator. */
6686
- CXBinaryOperator_Add ,
6633
+ CXBinaryOperator_Add = 6 ,
6687
6634
/** Subtraction operator. */
6688
- CXBinaryOperator_Sub ,
6635
+ CXBinaryOperator_Sub = 7 ,
6689
6636
/** Bitwise shift left operator. */
6690
- CXBinaryOperator_Shl ,
6637
+ CXBinaryOperator_Shl = 8 ,
6691
6638
/** Bitwise shift right operator. */
6692
- CXBinaryOperator_Shr ,
6639
+ CXBinaryOperator_Shr = 9 ,
6693
6640
/** C++ three-way comparison (spaceship) operator. */
6694
- CXBinaryOperator_Cmp ,
6641
+ CXBinaryOperator_Cmp = 10 ,
6695
6642
/** Less than operator. */
6696
- CXBinaryOperator_LT ,
6643
+ CXBinaryOperator_LT = 11 ,
6697
6644
/** Greater than operator. */
6698
- CXBinaryOperator_GT ,
6645
+ CXBinaryOperator_GT = 12 ,
6699
6646
/** Less or equal operator. */
6700
- CXBinaryOperator_LE ,
6647
+ CXBinaryOperator_LE = 13 ,
6701
6648
/** Greater or equal operator. */
6702
- CXBinaryOperator_GE ,
6649
+ CXBinaryOperator_GE = 14 ,
6703
6650
/** Equal operator. */
6704
- CXBinaryOperator_EQ ,
6651
+ CXBinaryOperator_EQ = 15 ,
6705
6652
/** Not equal operator. */
6706
- CXBinaryOperator_NE ,
6653
+ CXBinaryOperator_NE = 16 ,
6707
6654
/** Bitwise AND operator. */
6708
- CXBinaryOperator_And ,
6655
+ CXBinaryOperator_And = 17 ,
6709
6656
/** Bitwise XOR operator. */
6710
- CXBinaryOperator_Xor ,
6657
+ CXBinaryOperator_Xor = 18 ,
6711
6658
/** Bitwise OR operator. */
6712
- CXBinaryOperator_Or ,
6659
+ CXBinaryOperator_Or = 19 ,
6713
6660
/** Logical AND operator. */
6714
- CXBinaryOperator_LAnd ,
6661
+ CXBinaryOperator_LAnd = 20 ,
6715
6662
/** Logical OR operator. */
6716
- CXBinaryOperator_LOr ,
6663
+ CXBinaryOperator_LOr = 21 ,
6717
6664
/** Assignment operator. */
6718
- CXBinaryOperator_Assign ,
6665
+ CXBinaryOperator_Assign = 22 ,
6719
6666
/** Multiplication assignment operator. */
6720
- CXBinaryOperator_MulAssign ,
6667
+ CXBinaryOperator_MulAssign = 23 ,
6721
6668
/** Division assignment operator. */
6722
- CXBinaryOperator_DivAssign ,
6669
+ CXBinaryOperator_DivAssign = 24 ,
6723
6670
/** Remainder assignment operator. */
6724
- CXBinaryOperator_RemAssign ,
6671
+ CXBinaryOperator_RemAssign = 25 ,
6725
6672
/** Addition assignment operator. */
6726
- CXBinaryOperator_AddAssign ,
6673
+ CXBinaryOperator_AddAssign = 26 ,
6727
6674
/** Subtraction assignment operator. */
6728
- CXBinaryOperator_SubAssign ,
6675
+ CXBinaryOperator_SubAssign = 27 ,
6729
6676
/** Bitwise shift left assignment operator. */
6730
- CXBinaryOperator_ShlAssign ,
6677
+ CXBinaryOperator_ShlAssign = 28 ,
6731
6678
/** Bitwise shift right assignment operator. */
6732
- CXBinaryOperator_ShrAssign ,
6679
+ CXBinaryOperator_ShrAssign = 29 ,
6733
6680
/** Bitwise AND assignment operator. */
6734
- CXBinaryOperator_AndAssign ,
6681
+ CXBinaryOperator_AndAssign = 30 ,
6735
6682
/** Bitwise XOR assignment operator. */
6736
- CXBinaryOperator_XorAssign ,
6683
+ CXBinaryOperator_XorAssign = 31 ,
6737
6684
/** Bitwise OR assignment operator. */
6738
- CXBinaryOperator_OrAssign ,
6685
+ CXBinaryOperator_OrAssign = 32 ,
6739
6686
/** Comma operator. */
6740
- CXBinaryOperator_Comma
6687
+ CXBinaryOperator_Comma = 33 ,
6688
+ CXBinaryOperator_Last = CXBinaryOperator_Comma
6741
6689
};
6742
6690
6743
6691
/**
0 commit comments