]> granicus.if.org Git - clang/commit
Make sure methods with no return type default to "id".
authorSteve Naroff <snaroff@apple.com>
Tue, 9 Oct 2007 22:01:59 +0000 (22:01 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 9 Oct 2007 22:01:59 +0000 (22:01 +0000)
commitb216c8861c60af9c56c900a485233255c4452df2
treeefb66b8c17bc7f7a013e0d500bf8156582bfccfc
parent2c30d8fee8981ca4f20a477456dae1b722b53f1d
Make sure methods with no return type default to "id".

This fixes a crasher in Sema::MatchTwoMethodDeclarations(), identified by selector-overload.m (just added).

Added Action::ActOnTranslationUnitScope() and renamed Action::PopScope to ActOnPopScope.

Added a Translation Unit Scope instance variable to Sema (will be very useful to ObjC-related actions, since ObjC declarations are always file-scoped).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42817 91177308-0d34-0410-b5e6-96231b3b80d8
AST/ASTContext.cpp
Parse/Parser.cpp
Sema/Sema.cpp
Sema/Sema.h
Sema/SemaDecl.cpp
clang.xcodeproj/project.pbxproj
include/clang/Parse/Action.h
test/Sema/selector-overload.m [new file with mode: 0644]