Logo
Explore Help
Register Sign In
mir/libreoffice
2
0
Fork 0
You've already forked libreoffice
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
libreoffice/bin/gen-iwyu-dummy-lib.awk

35 lines
543 B
Awk
Raw Normal View History

improvements to iwyudummy target - split awk script into separate file - make awk work on older awk version - create new target in main Makefile.in to generate iwyudummy Makefile so we don't have to manually uncomment stuff - exclude /usr includes from the generated makefile - disable unused macros warnings to reduce noise - add some sanity checking - prevent using the generated makefile with compiler-plugins enabled - add new target for generating iwyu Makefile so we don't need to edit the Makefile when using it Change-Id: I4af8eb7d1aa5419e546acb9ef905a0fe623db57d Reviewed-on: https://gerrit.libreoffice.org/12980 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-11-20 09:47:17 +02:00
BEGIN { domatch = 0; }
{
if ($0 ~ /use_external(s)?,/ )
{
if (index($0, "))"))
{
gsub(/.*,/, "");
gsub(/\)+/, "");
if (!($0 in exts))
{
exts[$0];
print $0;
}
}
else
{
domatch = 1;
}
}
else if ($0 ~ /\)\)/ )
{
domatch = 0;
}
else if (domatch == 1)
{
if (!($1 in exts))
{
exts[$1];
print $1;
}
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 1978ms Template: 9ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API