diff options
author | John McCall <rjmccall@apple.com> | 2009-07-24 03:03:21 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-07-24 03:03:21 +0000 |
commit | d9baf6aed8e63a77cfa7dbf92c7a7a02d896244a (patch) | |
tree | eb31d2ac44fd5e9447f1e2220fd97dfb03556968 /clang/lib/Sema/SemaDecl.cpp | |
parent | cd31df0f3f43c6c9f53c96f238c5decc391aaf2f (diff) | |
download | bcm5719-llvm-d9baf6aed8e63a77cfa7dbf92c7a7a02d896244a.tar.gz bcm5719-llvm-d9baf6aed8e63a77cfa7dbf92c7a7a02d896244a.zip |
Test commit: make a little stub routine for semantic checking of main().
llvm-svn: 76934
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 617943fd9fd..454896584f2 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -2635,6 +2635,8 @@ void Sema::CheckFunctionDeclaration(FunctionDecl *NewFD, NamedDecl *&PrevDecl, return NewFD->setInvalidDecl(); } + if (NewFD->isMain()) CheckMain(NewFD); + // Semantic checking for this function declaration (in isolation). if (getLangOptions().CPlusPlus) { // C++-specific checks. @@ -2764,6 +2766,10 @@ void Sema::CheckFunctionDeclaration(FunctionDecl *NewFD, NamedDecl *&PrevDecl, CheckCXXDefaultArguments(NewFD); } +void Sema::CheckMain(FunctionDecl* FD) { + // FIXME: implement. +} + bool Sema::CheckForConstantInitializer(Expr *Init, QualType DclT) { // FIXME: Need strict checking. In C89, we need to check for // any assignment, increment, decrement, function-calls, or |