diff options
author | chcunningham <chcunningham@chromium.org> | 2015-05-13 18:39:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-14 01:40:00 +0000 |
commit | 4c74623e0c48f641e33f832aadf114257f8e87ca (patch) | |
tree | 8e4f8b2db803287ba2aaf32607051e1e3d7cccfe /third_party | |
parent | 5f99677ac4f9b8180ee7fd2f0d5c85e91828a951 (diff) | |
download | chromium_src-4c74623e0c48f641e33f832aadf114257f8e87ca.zip chromium_src-4c74623e0c48f641e33f832aadf114257f8e87ca.tar.gz chromium_src-4c74623e0c48f641e33f832aadf114257f8e87ca.tar.bz2 |
Adding new comment-matching regex to help license check with assembly files.
For example:
- third_party/ffmpeg/libavcodec/arm/hpeldsp_arm.S
- third_party/ffmpeg/libavcodec/x86/xvididct.asm
Review URL: https://codereview.chromium.org/1135243005
Cr-Commit-Position: refs/heads/master@{#329775}
Diffstat (limited to 'third_party')
-rwxr-xr-x | third_party/devscripts/licensecheck.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/devscripts/licensecheck.pl b/third_party/devscripts/licensecheck.pl index 39f7d54..a59bbf9 100755 --- a/third_party/devscripts/licensecheck.pl +++ b/third_party/devscripts/licensecheck.pl @@ -342,10 +342,17 @@ sub remove_comments($) { $_ = $_[0]; # Remove Fortran comments s/^[cC] //gm; + # Remove .ASM comments + s#^;\*?##gm; + # Remove .S comments + s#^@ ##gm; + # Remove new lines tr/\t\r\n/ /; # Remove C / C++ comments s#(\*/|/[/*])##g; + # Remove all characters not matching search tr% A-Za-z.,@;0-9\(\)/-%%cd; + # Collapse multiple spaces into single space tr/ //s; $_[0] = $_; } |