llvm.org GIT mirror llvm / a44c6ef
Adding an STL-like type trait that is duplicated in multiple places in Clang. This trait is used by several AST visitor classes to control whether the AST is visiting const nodes or non-const nodes. These uses cannot be easily replaced with the STL traits directly due to use of an unspecialized templated when a type is expected (due to the template template parameter involved). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348729 91177308-0d34-0410-b5e6-96231b3b80d8 Aaron Ballman 1 year, 9 months ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7070 struct conjunction
7171 : std::conditional, B1>::type {};
73 template struct make_const_ptr {
74 using type = std::add_pointer_t>;
75 };
7376 //===----------------------------------------------------------------------===//
7477 // Extra additions to
7578 //===----------------------------------------------------------------------===//