Minor code style changes
This commit is contained in:
parent
6b11edb2e2
commit
a471ce761f
@ -147,6 +147,7 @@ std::vector< CompletionData > TranslationUnit::CandidatesForLocation(
|
|||||||
ToCXUnsavedFiles( unsaved_files );
|
ToCXUnsavedFiles( unsaved_files );
|
||||||
const CXUnsavedFile *unsaved = cxunsaved_files.size() > 0
|
const CXUnsavedFile *unsaved = cxunsaved_files.size() > 0
|
||||||
? &cxunsaved_files[ 0 ] : NULL;
|
? &cxunsaved_files[ 0 ] : NULL;
|
||||||
|
|
||||||
// codeCompleteAt reparses the TU if the underlying source file has changed on
|
// codeCompleteAt reparses the TU if the underlying source file has changed on
|
||||||
// disk since the last time the TU was updated and there are no unsaved files.
|
// disk since the last time the TU was updated and there are no unsaved files.
|
||||||
// If there are unsaved files, then codeCompleteAt will parse the in-memory
|
// If there are unsaved files, then codeCompleteAt will parse the in-memory
|
||||||
@ -243,6 +244,7 @@ void TranslationUnit::Reparse( std::vector< CXUnsavedFile > &unsaved_files,
|
|||||||
return;
|
return;
|
||||||
CXUnsavedFile *unsaved = unsaved_files.size() > 0
|
CXUnsavedFile *unsaved = unsaved_files.size() > 0
|
||||||
? &unsaved_files[ 0 ] : NULL;
|
? &unsaved_files[ 0 ] : NULL;
|
||||||
|
|
||||||
failure = clang_reparseTranslationUnit( clang_translation_unit_,
|
failure = clang_reparseTranslationUnit( clang_translation_unit_,
|
||||||
unsaved_files.size(),
|
unsaved_files.size(),
|
||||||
unsaved,
|
unsaved,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user