From 22f1da517879a9f46a871475890a12e122809432 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sun, 9 Dec 2018 19:53:24 +0000 Subject: [PATCH] Move the make_const_ptr trait into STLExtras; use add_pointer where possible; NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348730 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/CommentVisitor.h | 13 +++++-------- include/clang/AST/DeclVisitor.h | 13 +++++-------- include/clang/AST/EvaluatedExprVisitor.h | 18 +++++++++--------- include/clang/AST/StmtVisitor.h | 16 +++++++--------- 4 files changed, 26 insertions(+), 34 deletions(-) diff --git a/include/clang/AST/CommentVisitor.h b/include/clang/AST/CommentVisitor.h index 5845e4fb51..e37e9d6cd2 100644 --- a/include/clang/AST/CommentVisitor.h +++ b/include/clang/AST/CommentVisitor.h @@ -11,14 +11,11 @@ #define LLVM_CLANG_AST_COMMENTVISITOR_H #include "clang/AST/Comment.h" +#include "llvm/ADT/STLExtras.h" #include "llvm/Support/ErrorHandling.h" namespace clang { namespace comments { - -template struct make_ptr { using type = T *; }; -template struct make_const_ptr { using type = const T *; }; - template