Style fixes for C++
This commit is contained in:
parent
b294d2531d
commit
1676a3b2a4
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user