Style fixes for C++

This commit is contained in:
Strahinja Val Markovic 2013-04-01 19:09:37 -07:00
parent b294d2531d
commit 1676a3b2a4
3 changed files with 37 additions and 33 deletions

View File

@ -191,10 +191,12 @@ Location TranslationUnit::GetDeclarationLocation(
return Location();
CXCursor cursor = GetCursor( line, column );
if ( !CursorIsValid( cursor ) )
return Location();
CXCursor referenced_cursor = clang_getCursorReferenced( cursor );
if ( !CursorIsValid( referenced_cursor ) )
return Location();
@ -213,10 +215,12 @@ Location TranslationUnit::GetDefinitionLocation(
return Location();
CXCursor cursor = GetCursor( line, column );
if ( !CursorIsValid( cursor ) )
return Location();
CXCursor definition_cursor = clang_getCursorDefinition( cursor );
if ( !CursorIsValid( definition_cursor ) )
return Location();