]> granicus.if.org Git - clang/blobdiff - Sema/SemaType.cpp
add a fixme.
[clang] / 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);