From 543826dec0e6c5f962ca9672f59401ae58834bae 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. llvm-svn: 348730 --- clang/include/clang/AST/CommentVisitor.h | 13 +++++-------- clang/include/clang/AST/DeclVisitor.h | 13 +++++-------- clang/include/clang/AST/EvaluatedExprVisitor.h | 18 +++++++++--------- clang/include/clang/AST/StmtVisitor.h | 16 +++++++--------- 4 files changed, 26 insertions(+), 34 deletions(-) diff --git a/clang/include/clang/AST/CommentVisitor.h b/clang/include/clang/AST/CommentVisitor.h index 5845e4f..e37e9d6 100644 --- a/clang/include/clang/AST/CommentVisitor.h +++ b/clang/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