clang: include/clang/Basic/OperatorKinds.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_CLANG_BASIC_OPERATORKINDS_H

15#define LLVM_CLANG_BASIC_OPERATORKINDS_H

16

18

19

20

22 OO_None,

23#define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly) \

24 OO_##Name,

25#include "clang/Basic/OperatorKinds.def"

28

29

30

32

33

34

37 switch (Kind) {

38 case OO_Less:

39 case OO_LessEqual:

40 case OO_Greater:

41 case OO_GreaterEqual:

42 return OO_Spaceship;

43

44 case OO_ExclaimEqual:

45 return OO_EqualEqual;

46

47 default:

49 }

50}

51

52

54 return Kind >= OO_PlusEqual && Kind <= OO_PipeEqual;

55}

56

57}

58

59#endif

enum clang::sema::@1726::IndirectLocalPathEntry::EntryKind Kind

The JSON file list parser is used to communicate input to InstallAPI.

OverloadedOperatorKind

Enumeration specifying the different kinds of C++ overloaded operators.

@ OO_None

Not an overloaded operator.

@ NUM_OVERLOADED_OPERATORS

bool isCompoundAssignmentOperator(OverloadedOperatorKind Kind)

Determine if this is a compound assignment operator.

OverloadedOperatorKind getRewrittenOverloadedOperator(OverloadedOperatorKind Kind)

Get the other overloaded operator that the given operator can be rewritten into, if any such operator...

const char * getOperatorSpelling(OverloadedOperatorKind Operator)

Retrieve the spelling of the given overloaded operator, without the preceding "operator" keyword.