clang-tools 3.8.0

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

TypeTraits.h
Go to the documentation of this file.
1 //===--- TypeTraits.h - clang-tidy-------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_UTILS_TYPETRAITS_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_UTILS_TYPETRAITS_H
12
13 #include "clang/AST/ASTContext.h"
14 #include "clang/AST/Type.h"
15
16 namespace clang {
17 namespace tidy {
18 namespace type_traits {
19
20 // \brief Returns true If \c Type is expensive to copy.
21 llvm::Optional<bool> isExpensiveToCopy(QualType Type, ASTContext &Context);
22
23 } // type_traits
24 } // namespace tidy
25 } // namespace clang
26
27 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_UTILS_TYPETRAITS_H
clang::tidy::type_traits::isExpensiveToCopy
llvm::Optional< bool > isExpensiveToCopy(QualType Type, ASTContext &Context)
Definition: TypeTraits.cpp:27
Context
ClangTidyContext & Context
Definition: ClangTidy.cpp:93