1 //===--- OperatorKinds.h - C++ Overloaded Operators -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Defines an enumeration for C++ overloaded operators.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_BASIC_OPERATOR_KINDS_H
16 #define LLVM_CLANG_BASIC_OPERATOR_KINDS_H
20 /// \brief Enumeration specifying the different kinds of C++ overloaded
22 enum OverloadedOperatorKind {
23 OO_None, ///< Not an overloaded operator
24 #define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly) \
26 #include "clang/Basic/OperatorKinds.def"
27 NUM_OVERLOADED_OPERATORS
30 /// \brief Retrieve the spelling of the given overloaded operator, without
31 /// the preceding "operator" keyword.
32 const char *getOperatorSpelling(OverloadedOperatorKind Operator);
34 } // end namespace clang