New TODO to check TU creation success

This commit is contained in:
Strahinja Val Markovic 2012-08-13 15:51:55 -07:00
parent 0903d5151b
commit f74ddbcec5

View File

@ -48,6 +48,8 @@ TranslationUnit::TranslationUnit(
std::vector< CXUnsavedFile > cxunsaved_files = ToCXUnsavedFiles(
unsaved_files );
// TODO: check return value of the parse* and reparse* functions! Throw an
// exception on problems.
clang_translation_unit_ = clang_parseTranslationUnit(
clang_index,
filename.c_str(),