Adding a few run-time asserts

This commit is contained in:
Strahinja Val Markovic 2012-09-06 11:58:02 -07:00
parent fc3bc60fae
commit 909450ec13

View File

@ -35,7 +35,9 @@ std::vector< CXUnsavedFile > ToCXUnsavedFiles(
std::vector< CXUnsavedFile > clang_unsaved_files( unsaved_files.size() ); std::vector< CXUnsavedFile > clang_unsaved_files( unsaved_files.size() );
for ( uint i = 0; i < unsaved_files.size(); ++i ) for ( uint i = 0; i < unsaved_files.size(); ++i )
{ {
// TODO: assert non-null X_VERIFY( unsaved_files[ i ].filename_ );
X_VERIFY( unsaved_files[ i ].contents_ );
X_VERIFY( unsaved_files[ i ].length_ );
clang_unsaved_files[ i ].Filename = unsaved_files[ i ].filename_; clang_unsaved_files[ i ].Filename = unsaved_files[ i ].filename_;
clang_unsaved_files[ i ].Contents = unsaved_files[ i ].contents_; clang_unsaved_files[ i ].Contents = unsaved_files[ i ].contents_;
clang_unsaved_files[ i ].Length = unsaved_files[ i ].length_; clang_unsaved_files[ i ].Length = unsaved_files[ i ].length_;