clang API Documentation

Namespaces | Enumerations | Functions
OperatorPrecedence.h File Reference

Defines and computes precedence levels for binary/ternary operators. More...

#include "clang/Basic/TokenKinds.h"
Include dependency graph for OperatorPrecedence.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  clang
namespace  clang::prec

Enumerations

enum  clang::prec::Level {
  clang::prec::Unknown = 0, clang::prec::Comma = 1, clang::prec::Assignment = 2, clang::prec::Conditional = 3,
  clang::prec::LogicalOr = 4, clang::prec::LogicalAnd = 5, clang::prec::InclusiveOr = 6, clang::prec::ExclusiveOr = 7,
  clang::prec::And = 8, clang::prec::Equality = 9, clang::prec::Relational = 10, clang::prec::Shift = 11,
  clang::prec::Additive = 12, clang::prec::Multiplicative = 13, clang::prec::PointerToMember = 14
}

Functions

prec::Level clang::getBinOpPrecedence (tok::TokenKind Kind, bool GreaterThanIsOperator, bool CPlusPlus11)
 Return the precedence of the specified binary operator token.

Detailed Description

Defines and computes precedence levels for binary/ternary operators.

Definition in file OperatorPrecedence.h.