]> granicus.if.org Git - clang/commitdiff
add a fixme.
authorChris Lattner <sabre@nondot.org>
Thu, 21 Feb 2008 01:32:57 +0000 (01:32 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 21 Feb 2008 01:32:57 +0000 (01:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47421 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaType.cpp

index 4b06e6adadc8f34c360ff9617f35dc764d32a46d..f717b4139a53ce121625fdb7add00b428e112c78 100644 (file)
@@ -186,7 +186,7 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) {
       break;
     case DeclaratorChunk::Reference:
       if (const ReferenceType *RT = T->getAsReferenceType()) {
-        // C++ 8.3.2p4: There shall be no references to references ...
+        // C++ 8.3.2p4: There shall be no references to references.
         Diag(D.getIdentifierLoc(),
              diag::err_illegal_decl_reference_to_reference,
              D.getIdentifier() ? D.getIdentifier()->getName() : "type name");
@@ -196,6 +196,8 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) {
 
       T = Context.getReferenceType(T);
         
+      // FIXME: Handle Ref.Restrict!
+        
       // See if there are any attributes on the pointer that apply to it.
       if (AttributeList *AL = DeclType.Ref.AttrList)
         DeclType.Ref.AttrList = ProcessTypeAttributes(T, AL);