clang  9.0.0svn
TypeTraits.h
Go to the documentation of this file.
1 //===--- TypeTraits.h - C++ Type Traits Support Enumerations ----*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// Defines enumerations for the type traits support.
11 ///
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_CLANG_BASIC_TYPETRAITS_H
15 #define LLVM_CLANG_BASIC_TYPETRAITS_H
16 
17 namespace clang {
18 
19  /// Names for traits that operate specifically on types.
20  enum TypeTrait {
87  };
88 
89  /// Names for the array type traits.
93  };
94 
95  /// Names for the "expression or type" traits.
98  /// Used for C's _Alignof and C++'s alignof.
99  /// _Alignof and alignof return the required ABI alignment.
103  /// Used for GCC's __alignof.
104  /// __alignof returns the preferred alignment of a type, the alignment
105  /// clang will attempt to give an object of the type if allowed by ABI.
107  };
108 }
109 
110 #endif
Used for GCC's __alignof.
Definition: TypeTraits.h:106
UnaryExprOrTypeTrait
Names for the "expression or type" traits.
Definition: TypeTraits.h:96
ArrayTypeTrait
Names for the array type traits.
Definition: TypeTraits.h:90
TypeTrait
Names for traits that operate specifically on types.
Definition: TypeTraits.h:20
Used for C's _Alignof and C++'s alignof.
Definition: TypeTraits.h:100
Dataflow Directional Tag Classes.