prepare-ChangeLog.pl revision 7794
14514N/Aif (@conflict_files)
14514N/A print STDERR " The following files have conflicts. Run prepare-ChangeLog again after fixing the conflicts:\n";
10139N/Aif (@changed_files)
10139N/A open DIFF, "$SVN diff --diff-cmd diff -x -N $changed_files_string |" or die "The svn diff failed: $!.\n";
10139N/A } elsif (/DO_NOT_COMMIT/) {
10139N/A my %saw_function;
13729N/Aif (!%function_lists)
10139N/A open ERRORS, "$SVN update -q$logs |" or die "The svn update of ChangeLog files failed: $!.\n";
10139N/A open OLD_CHANGE_LOG, "${prefix}ChangeLog" or die "Could not open ${prefix}ChangeLog file: $!.\n";
10139N/A close OLD_CHANGE_LOG;
10139N/A my $haveNewTests = (-x "$testsDir/../LayoutTests" && `svn diff \"$testsDir/../LayoutTests\"`);
10139N/A close CHANGE_LOG;
10139N/A (my $method_decl) = @_;
10358N/A $_ = $method_decl;
15168N/A if ((my $comment_stripped) = m-([^/]*)(//|/*).*-)
14526N/A $_ = $comment_stripped;
13600N/A my @components = split /:/;
10162N/A my @namespaces;
10139N/A while (<$file_handle>)
10139N/A if ($in_comment)
10139N/A my $method_cont = $_;
10139N/A chomp $method_cont;
10139N/A $method_cont =~ s/[;\{].*//;
10139N/A if ($interface_name)
10139N/A chomp $method_spec;
10139N/A $method_spec =~ s/\{.*//;
10139N/A $potential_start = $.;
$_ = $original;
$_ = $original;
while (m&((?:[[:word:]]+::)*operator(?:[ \t]*\(\)|[^()]*)|[[:word:]:~]+|[(){}:;])|\@(?:implementation|interface|protocol)\s+(\w+)[^{]*&g)
$in_parentheses++;
$in_parentheses--;
if ($potential_namespace) {
$in_braces++;
pop @namespaces;
$in_braces--;
if (!$skip_til_brace_or_semicolon) {
if ($next_word_could_be_namespace) {
} elsif ($potential_namespace) {
if (!$in_parentheses) {
if (!$potential_start) {
$potential_start = $.;
return @ranges;
my @current_scopes;
my @ranges;
while (<$file_handle>)
if ($in_comment)
if ($in_macro)
s-$match.*--;
if (!$in_parentheses) {
$in_parentheses++;
$in_parentheses--;
if (!$in_non_block_braces
and $potential_start)
if ($name)
$in_braces++;
$in_braces--;
if (!$in_non_block_braces)
if ($name)
pop (@current_scopes);
if (@current_scopes)
if (!$in_parentheses)
if ($class_or_interface_just_seen) {
$potential_start = $.;
if (!$potential_start)
$potential_start = $.;
return @ranges;