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 | 8c4859ad8a60388f09d641b88f9444ccc6c2f31b (patch) | |
tree | fb7dc90a40049d7f19501ef4b229daa3f5cb39b4 /lib/Sema/SemaDecl.cpp | |
parent | 3a92d6d95ba894470c47ab2580135e8f094f0efe (diff) |
Test commit: make a little stub routine for semantic checking of main().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 617943fd9f..454896584f 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/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 |