include objc method decl contexts in stack trace of crash, e.g.:
Stack dump: 0. message.m:53:13: in compound statement ('{}') 1. message.m:53:13: parsing Objective-C method 'xx' 2. clang message.m llvm-svn: 66121
This commit is contained in:
parent
eed256da90
commit
e268b406ba
|
@ -1355,6 +1355,11 @@ Parser::OwningStmtResult Parser::ParseObjCTryStmt(SourceLocation atLoc) {
|
|||
///
|
||||
Parser::DeclTy *Parser::ParseObjCMethodDefinition() {
|
||||
DeclTy *MDecl = ParseObjCMethodPrototype(ObjCImpDecl);
|
||||
|
||||
PrettyStackTraceDecl CrashInfo(MDecl, Tok.getLocation(), Actions,
|
||||
PP.getSourceManager(),
|
||||
"parsing Objective-C method");
|
||||
|
||||
// parse optional ';'
|
||||
if (Tok.is(tok::semi))
|
||||
ConsumeToken();
|
||||
|
|
Loading…
Reference in New Issue