diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-05 09:46:30 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-05 09:46:30 +0000 |
commit | 6496bd10dc3a6d5e3266348f08b6e35f8184bc99 (patch) | |
tree | 6b1a11e5612e6912844640622a6a913cd9bc92c4 /include/clang/AST/CanonicalType.h | |
parent | b11a7fd2f2204c7aadd74f870c98667d461997f5 (diff) |
Move operator overload out of line. Calling operator<< on a forward declared type doesn't seem to work on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/CanonicalType.h')
-rw-r--r-- | include/clang/AST/CanonicalType.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/clang/AST/CanonicalType.h b/include/clang/AST/CanonicalType.h index 99552b3617..5b27b4e1fa 100644 --- a/include/clang/AST/CanonicalType.h +++ b/include/clang/AST/CanonicalType.h @@ -16,7 +16,6 @@ #define LLVM_CLANG_AST_CANONICAL_TYPE_H #include "clang/AST/Type.h" -#include "clang/Basic/Diagnostic.h" #include "llvm/Support/Casting.h" #include "llvm/Support/type_traits.h" #include <iterator> @@ -201,11 +200,7 @@ inline CanQualType Type::getCanonicalTypeUnqualified() const { return CanQualType::CreateUnsafe(getCanonicalTypeInternal()); } -inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB, - CanQualType T) { - DB << static_cast<QualType>(T); - return DB; -} +const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB, CanQualType T); //----------------------------------------------------------------------------// // Internal proxy classes used by canonical types |