|
@@ -14,11 +14,9 @@
|
|
#ifndef LLVM_CLANG_AST_TYPE_H
|
|
#ifndef LLVM_CLANG_AST_TYPE_H
|
|
#define LLVM_CLANG_AST_TYPE_H
|
|
#define LLVM_CLANG_AST_TYPE_H
|
|
|
|
|
|
-#include "clang/Basic/Diagnostic.h"
|
|
|
|
#include "clang/Basic/ExceptionSpecificationType.h"
|
|
#include "clang/Basic/ExceptionSpecificationType.h"
|
|
#include "clang/Basic/IdentifierTable.h"
|
|
#include "clang/Basic/IdentifierTable.h"
|
|
#include "clang/Basic/Linkage.h"
|
|
#include "clang/Basic/Linkage.h"
|
|
-#include "clang/Basic/PartialDiagnostic.h"
|
|
|
|
#include "clang/Basic/Visibility.h"
|
|
#include "clang/Basic/Visibility.h"
|
|
#include "clang/AST/NestedNameSpecifier.h"
|
|
#include "clang/AST/NestedNameSpecifier.h"
|
|
#include "clang/AST/TemplateName.h"
|
|
#include "clang/AST/TemplateName.h"
|
|
@@ -94,6 +92,7 @@ namespace clang {
|
|
class ExtQuals;
|
|
class ExtQuals;
|
|
class ExtQualsTypeCommonBase;
|
|
class ExtQualsTypeCommonBase;
|
|
struct PrintingPolicy;
|
|
struct PrintingPolicy;
|
|
|
|
+ class PartialDiagnostic;
|
|
|
|
|
|
template <typename> class CanQual;
|
|
template <typename> class CanQual;
|
|
typedef CanQual<Type> CanQualType;
|
|
typedef CanQual<Type> CanQualType;
|
|
@@ -4799,21 +4798,11 @@ inline const Type *Type::getBaseElementTypeUnsafe() const {
|
|
|
|
|
|
/// Insertion operator for diagnostics. This allows sending QualType's into a
|
|
/// Insertion operator for diagnostics. This allows sending QualType's into a
|
|
/// diagnostic with <<.
|
|
/// diagnostic with <<.
|
|
-inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB,
|
|
|
|
- QualType T) {
|
|
|
|
- DB.AddTaggedVal(reinterpret_cast<intptr_t>(T.getAsOpaquePtr()),
|
|
|
|
- DiagnosticsEngine::ak_qualtype);
|
|
|
|
- return DB;
|
|
|
|
-}
|
|
|
|
|
|
+const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB, QualType T);
|
|
|
|
|
|
/// Insertion operator for partial diagnostics. This allows sending QualType's
|
|
/// Insertion operator for partial diagnostics. This allows sending QualType's
|
|
/// into a diagnostic with <<.
|
|
/// into a diagnostic with <<.
|
|
-inline const PartialDiagnostic &operator<<(const PartialDiagnostic &PD,
|
|
|
|
- QualType T) {
|
|
|
|
- PD.AddTaggedVal(reinterpret_cast<intptr_t>(T.getAsOpaquePtr()),
|
|
|
|
- DiagnosticsEngine::ak_qualtype);
|
|
|
|
- return PD;
|
|
|
|
-}
|
|
|
|
|
|
+const PartialDiagnostic &operator<<(const PartialDiagnostic &PD, QualType T);
|
|
|
|
|
|
// Helper class template that is used by Type::getAs to ensure that one does
|
|
// Helper class template that is used by Type::getAs to ensure that one does
|
|
// not try to look through a qualified type to get to an array type.
|
|
// not try to look through a qualified type to get to an array type.
|