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
Showing
- AST/ASTContext.cpp 0 additions, 1 deletionAST/ASTContext.cpp
- Parse/Parser.cpp 3 additions, 2 deletionsParse/Parser.cpp
- Sema/Sema.cpp 4 additions, 0 deletionsSema/Sema.cpp
- Sema/Sema.h 7 additions, 1 deletionSema/Sema.h
- Sema/SemaDecl.cpp 13 additions, 2 deletionsSema/SemaDecl.cpp
- clang.xcodeproj/project.pbxproj 1 addition, 2 deletionsclang.xcodeproj/project.pbxproj
- include/clang/Parse/Action.h 8 additions, 4 deletionsinclude/clang/Parse/Action.h
- test/Sema/selector-overload.m 43 additions, 0 deletionstest/Sema/selector-overload.m
Loading
Please register or sign in to comment