SplitSource fix detection of Td.cpp.

GitOrigin-RevId: d6f3f2b37f271deb47287264666df25d71e18222
This commit is contained in:
levlam 2019-04-26 23:00:26 +03:00
parent 02830797c9
commit 23afac5ec2

View File

@ -257,7 +257,7 @@ function split_file($file, $chunks, $undo) {
); );
} }
if (strpos($new_content, 'Td::') === false) { // destructor Td::~Td needs to see definitions of all forward-declared classes if (strpos($cpp_name, 'Td.cpp') === false) { // destructor Td::~Td needs to see definitions of all forward-declared classes
$td_methods = array( $td_methods = array(
'auth_manager[_(-][^.]|AuthManager' => 'AuthManager', 'auth_manager[_(-][^.]|AuthManager' => 'AuthManager',
'ConfigShared|shared_config[(][)]' => 'ConfigShared', 'ConfigShared|shared_config[(][)]' => 'ConfigShared',