Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce01548

Browse files
committed
Clarify the regexp used to detect source files in MSVC builds.
The old pattern would match files with strange extensions like *.ry or*.lpp. Refactor it to only include files with known extensions, and to makeit more readable.Per Andrew Dunstan's suggestion.
1 parentc340494 commitce01548

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/tools/msvc/MSBuildProject.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ EOF
127127
foreachmy$fileNameWithPath (sortkeys %{$self->{files} })
128128
{
129129
confess"Bad format filename '$fileNameWithPath'\n"
130-
unless ($fileNameWithPath =~/^(.*)\\([^\\]+)\.[r]?[cyl]$/);
130+
unless ($fileNameWithPath =~/^(.*)\\([^\\]+)\.(c|cpp|y|l|rc)$/);
131131
my$dir =$1;
132132
my$fileName =$2;
133133
if ($fileNameWithPath =~/\.y$/or$fileNameWithPath =~/\.l$/)

‎src/tools/msvc/VCBuildProject.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ EOF
7171
foreachmy$fileNameWithPath (sortkeys %{$self->{files} })
7272
{
7373
confess"Bad format filename '$fileNameWithPath'\n"
74-
unless ($fileNameWithPath =~/^(.*)\\([^\\]+)\.[r]?[cyl]$/);
74+
unless ($fileNameWithPath =~/^(.*)\\([^\\]+)\.(c|cpp|y|l|rc)$/);
7575
my$dir =$1;
7676
my$file =$2;
7777

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp