clang: lib/Basic/OperatorPrecedence.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
14
16
19 switch (Kind) {
20 case tok::greater:
21
22
23
24
25 if (GreaterThanIsOperator)
28
29 case tok::greatergreater:
30
31
32
33
34
35
36 if (GreaterThanIsOperator || )
39
42 case tok::equal:
43 case tok::starequal:
44 case tok::slashequal:
45 case tok::percentequal:
46 case tok::plusequal:
47 case tok::minusequal:
48 case tok::lesslessequal:
49 case tok::greatergreaterequal:
50 case tok::ampequal:
51 case tok::caretequal:
59 case tok::exclaimequal:
61 case tok::lessequal:
62 case tok::less:
66 case tok:➕
68 case tok::percent:
69 case tok::slash:
71 case tok::periodstar:
73 }
74}
75
76}
enum clang::sema::@1726::IndirectLocalPathEntry::EntryKind Kind
Defines and computes precedence levels for binary/ternary operators.
TokenKind
Provides a simple uniform namespace for tokens from all C languages.
The JSON file list parser is used to communicate input to InstallAPI.
prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator, bool CPlusPlus11)
Return the precedence of the specified binary operator token.