diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-26 23:45:07 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-26 23:45:07 +0000 |
commit | b790661a15d93941d2c33a0ea328254277b3d7e3 (patch) | |
tree | 3d517a27cfc2311423829859a4e43449fcf5a1eb /lib/Sema/SemaType.cpp | |
parent | 63bb7c2b281c62a30233b1638ecd8fb4048a38c4 (diff) |
Bye-bye old RequireCompleteType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 9ca38e4ad7..7837952353 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -1751,31 +1751,11 @@ void Sema::ProcessTypeAttributeList(QualType &Result, const AttributeList *AL) { /// /// @param T The type that this routine is examining for completeness. /// -/// @param diag The diagnostic value (e.g., -/// @c diag::err_typecheck_decl_incomplete_type) that will be used -/// for the error message if @p T is incomplete. If 0, no diagnostic will be -/// emitted. -/// -/// @param Range1 An optional range in the source code that will be a -/// part of the "incomplete type" error message. -/// -/// @param Range2 An optional range in the source code that will be a -/// part of the "incomplete type" error message. -/// -/// @param PrintType If non-NULL, the type that should be printed -/// instead of @p T. This parameter should be used when the type that -/// we're checking for incompleteness isn't the type that should be -/// displayed to the user, e.g., when T is a type and PrintType is a -/// pointer to T. +/// @param PD The partial diagnostic that will be printed out if T is not a +/// complete type. /// /// @returns @c true if @p T is incomplete and a diagnostic was emitted, /// @c false otherwise. -bool Sema::RequireCompleteType(SourceLocation Loc, QualType T, unsigned diag, - SourceRange Range1) { - return RequireCompleteType(Loc, T, - PDiag(diag) << Range1); -} - bool Sema::RequireCompleteType(SourceLocation Loc, QualType T, const PartialDiagnostic &PD) { unsigned diag = PD.getDiagID(); |