add some comments
llvm-svn: 39242
diff --git a/clang/AST/SemaDecl.cpp b/clang/AST/SemaDecl.cpp
index af32495..41a9dda 100644
--- a/clang/AST/SemaDecl.cpp
+++ b/clang/AST/SemaDecl.cpp
@@ -76,9 +76,9 @@
}
Decl *New;
- if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) {
+ if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef)
New = ParseTypedefDecl(S, D, PrevDecl);
- } else if (D.isFunctionDeclarator())
+ else if (D.isFunctionDeclarator())
New = new FunctionDecl(II, GetTypeForDeclarator(D, S), PrevDecl);
else
New = new VarDecl(II, GetTypeForDeclarator(D, S), PrevDecl);
@@ -126,11 +126,20 @@
// Since this is a function definition, act as though we have information
// about the arguments.
FTI.hasPrototype = true;
+ } else {
+ // FIXME: Diagnose arguments without names in C.
+
}
-
FunctionDecl *FD = static_cast<FunctionDecl*>(ParseDeclarator(S, D, 0, 0));
CurFunctionDecl = FD;
+
+ // Since this is a function definition, remember the names of the arguments in
+ // the FunctionDecl.
+
+ // FIXME: TODO. Add to FunctionDecl, install declarators into current scope.
+
+
return FD;
}