|
|
|
@ -299,7 +299,8 @@ static clang::SourceLocation GetDeclStartLocation(clang::CompilerInstance* C, |
|
|
|
if(SM.getFileID(prevDeclEndLoc) != SM.getFileID(startLoc)) |
|
|
|
if(SM.getFileID(prevDeclEndLoc) != SM.getFileID(startLoc)) |
|
|
|
return lineBeginLoc; |
|
|
|
return lineBeginLoc; |
|
|
|
|
|
|
|
|
|
|
|
assert(prevDeclEndOffset <= startOffset); |
|
|
|
// TODO: Figure out why this asserts
|
|
|
|
|
|
|
|
//assert(prevDeclEndOffset <= startOffset);
|
|
|
|
|
|
|
|
|
|
|
|
if(prevDeclEndOffset < lineBeginOffset) |
|
|
|
if(prevDeclEndOffset < lineBeginOffset) |
|
|
|
return lineBeginLoc; |
|
|
|
return lineBeginLoc; |
|
|
|
|