|
|
|||
File indexing completed on 2026-05-10 08:36:49
0001 //===- ExpressionTraits.h - C++ Expression Traits Support Enums -*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 /// 0009 /// \file 0010 /// Defines enumerations for expression traits intrinsics. 0011 /// 0012 //===----------------------------------------------------------------------===// 0013 0014 #ifndef LLVM_CLANG_BASIC_EXPRESSIONTRAITS_H 0015 #define LLVM_CLANG_BASIC_EXPRESSIONTRAITS_H 0016 0017 #include "llvm/Support/Compiler.h" 0018 0019 namespace clang { 0020 0021 enum ExpressionTrait { 0022 #define EXPRESSION_TRAIT(Spelling, Name, Key) ET_##Name, 0023 #include "clang/Basic/TokenKinds.def" 0024 ET_Last = -1 // ET_Last == last ET_XX in the enum. 0025 #define EXPRESSION_TRAIT(Spelling, Name, Key) +1 0026 #include "clang/Basic/TokenKinds.def" 0027 }; 0028 0029 /// Return the internal name of type trait \p T. Never null. 0030 const char *getTraitName(ExpressionTrait T) LLVM_READONLY; 0031 0032 /// Return the spelling of the type trait \p TT. Never null. 0033 const char *getTraitSpelling(ExpressionTrait T) LLVM_READONLY; 0034 0035 } // namespace clang 0036 0037 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|