2121#include < limits> // HLSL Change
2222
2323namespace clang {
24-
24+
2525// / CastKind - The kind of operation required for a conversion.
2626enum CastKind {
2727 // / CK_Dependent - A conversion which cannot yet be analyzed because
@@ -340,55 +340,35 @@ static_assert(
340340enum BinaryOperatorKind {
341341 // Operators listed in order of precedence.
342342 // Note that additions to this should also update the StmtVisitor class.
343- BO_PtrMemD,
344- BO_PtrMemI, // [C++ 5.5] Pointer-to-member operators.
345- BO_Mul,
346- BO_Div,
347- BO_Rem, // [C99 6.5.5] Multiplicative operators.
348- BO_Add,
349- BO_Sub, // [C99 6.5.6] Additive operators.
350- BO_Shl,
351- BO_Shr, // [C99 6.5.7] Bitwise shift operators.
352- BO_LT,
353- BO_GT,
354- BO_LE,
355- BO_GE, // [C99 6.5.8] Relational operators.
356- BO_EQ,
357- BO_NE, // [C99 6.5.9] Equality operators.
358- BO_And, // [C99 6.5.10] Bitwise AND operator.
359- BO_Xor, // [C99 6.5.11] Bitwise XOR operator.
360- BO_Or, // [C99 6.5.12] Bitwise OR operator.
361- BO_LAnd, // [C99 6.5.13] Logical AND operator.
362- BO_LOr, // [C99 6.5.14] Logical OR operator.
363- BO_Assign,
364- BO_MulAssign, // [C99 6.5.16] Assignment operators.
365- BO_DivAssign,
366- BO_RemAssign,
367- BO_AddAssign,
368- BO_SubAssign,
369- BO_ShlAssign,
370- BO_ShrAssign,
371- BO_AndAssign,
372- BO_XorAssign,
343+ BO_PtrMemD, BO_PtrMemI, // [C++ 5.5] Pointer-to-member operators.
344+ BO_Mul, BO_Div, BO_Rem, // [C99 6.5.5] Multiplicative operators.
345+ BO_Add, BO_Sub, // [C99 6.5.6] Additive operators.
346+ BO_Shl, BO_Shr, // [C99 6.5.7] Bitwise shift operators.
347+ BO_LT, BO_GT, BO_LE, BO_GE, // [C99 6.5.8] Relational operators.
348+ BO_EQ, BO_NE, // [C99 6.5.9] Equality operators.
349+ BO_And, // [C99 6.5.10] Bitwise AND operator.
350+ BO_Xor, // [C99 6.5.11] Bitwise XOR operator.
351+ BO_Or, // [C99 6.5.12] Bitwise OR operator.
352+ BO_LAnd, // [C99 6.5.13] Logical AND operator.
353+ BO_LOr, // [C99 6.5.14] Logical OR operator.
354+ BO_Assign, BO_MulAssign, // [C99 6.5.16] Assignment operators.
355+ BO_DivAssign, BO_RemAssign,
356+ BO_AddAssign, BO_SubAssign,
357+ BO_ShlAssign, BO_ShrAssign,
358+ BO_AndAssign, BO_XorAssign,
373359 BO_OrAssign,
374- BO_Comma // [C99 6.5.17] Comma operator.
360+ BO_Comma // [C99 6.5.17] Comma operator.
375361};
376362
377363enum UnaryOperatorKind {
378364 // Note that additions to this should also update the StmtVisitor class.
379- UO_PostInc,
380- UO_PostDec, // [C99 6.5.2.4] Postfix increment and decrement
381- UO_PreInc,
382- UO_PreDec, // [C99 6.5.3.1] Prefix increment and decrement
383- UO_AddrOf,
384- UO_Deref, // [C99 6.5.3.2] Address and indirection
385- UO_Plus,
386- UO_Minus, // [C99 6.5.3.3] Unary arithmetic
387- UO_Not,
388- UO_LNot, // [C99 6.5.3.3] Unary arithmetic
389- UO_Real,
390- UO_Imag, // "__real expr"/"__imag expr" Extension.
391- UO_Extension // __extension__ marker.
365+ UO_PostInc, UO_PostDec, // [C99 6.5.2.4] Postfix increment and decrement
366+ UO_PreInc, UO_PreDec, // [C99 6.5.3.1] Prefix increment and decrement
367+ UO_AddrOf, UO_Deref, // [C99 6.5.3.2] Address and indirection
368+ UO_Plus, UO_Minus, // [C99 6.5.3.3] Unary arithmetic
369+ UO_Not, UO_LNot, // [C99 6.5.3.3] Unary arithmetic
370+ UO_Real, UO_Imag, // "__real expr"/"__imag expr" Extension.
371+ UO_Extension // __extension__ marker.
392372};
393373
394374// / \brief The kind of bridging performed by the Objective-C bridge cast.
@@ -404,6 +384,6 @@ enum ObjCBridgeCastKind {
404384 OBC_BridgeRetained
405385};
406386
407- } // namespace clang
387+ }
408388
409389#endif
0 commit comments