Author: stephant Date: Thu Mar 13 15:34:03 2014 New Revision: 203845 URL: http://llvm.org/viewvc/llvm-project?rev=203845&view=rev Log: Add SourceRange to err_not_tag_in_scope diagnostic in TreeTransform<...>::RebuildDependentNameType
Apparently the FIXME was overlooked when the source location information was made available to the function. Reviewed By: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D3058 Modified: cfe/trunk/lib/Sema/TreeTransform.h Modified: cfe/trunk/lib/Sema/TreeTransform.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/TreeTransform.h?rev=203845&r1=203844&r2=203845&view=diff ============================================================================== --- cfe/trunk/lib/Sema/TreeTransform.h (original) +++ cfe/trunk/lib/Sema/TreeTransform.h Thu Mar 13 15:34:03 2014 @@ -952,9 +952,8 @@ public: break; } default: - // FIXME: Would be nice to highlight just the source range. SemaRef.Diag(IdLoc, diag::err_not_tag_in_scope) - << Kind << Id << DC; + << Kind << Id << DC << QualifierLoc.getSourceRange(); break; } return QualType(); _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
