1 |
From af002023d6b8f9a9e51fc31c8c25d48012e35ddf Mon Sep 17 00:00:00 2001 |
2 |
From: Andreas Sturmlechner <asturm@g.o> |
3 |
Date: Sun, 28 Mar 2021 15:04:50 +0200 |
4 |
Subject: [PATCH 5/5] flag-o-matic.eclass: Fix eclassdoc |
5 |
|
6 |
Signed-off-by: Andreas Sturmlechner <asturm@g.o> |
7 |
--- |
8 |
eclass/flag-o-matic.eclass | 15 ++++++++++++++- |
9 |
1 file changed, 14 insertions(+), 1 deletion(-) |
10 |
|
11 |
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass |
12 |
index a35f0bef269..6e7582c4643 100644 |
13 |
--- a/eclass/flag-o-matic.eclass |
14 |
+++ b/eclass/flag-o-matic.eclass |
15 |
@@ -21,6 +21,8 @@ case ${EAPI} in |
16 |
*) die "EAPI ${EAPI} is not supported by flag-o-matic.eclass." ;; |
17 |
esac |
18 |
|
19 |
+# @FUNCTION: all-flag-vars |
20 |
+# @DESCRIPTION: |
21 |
# Return all the flag variables that our high level funcs operate on. |
22 |
all-flag-vars() { |
23 |
echo {ADA,C,CPP,CXX,CCAS,F,FC,LD}FLAGS |
24 |
@@ -108,7 +110,10 @@ _setup-allowed-flags() { |
25 |
) |
26 |
} |
27 |
|
28 |
-# inverted filters for hardened compiler. This is trying to unpick |
29 |
+# @FUNCTION: _filter-hardened |
30 |
+# @INTERNAL |
31 |
+# @DESCRIPTION: |
32 |
+# Inverted filters for hardened compiler. This is trying to unpick |
33 |
# the hardened compiler defaults. |
34 |
_filter-hardened() { |
35 |
local f |
36 |
@@ -142,6 +147,9 @@ _filter-hardened() { |
37 |
done |
38 |
} |
39 |
|
40 |
+# @FUNCTION: _filter-var |
41 |
+# @INTERNAL |
42 |
+# @DESCRIPTION: |
43 |
# Remove occurrences of strings from variable given in $1 |
44 |
# Strings removed are matched as globs, so for example |
45 |
# '-O*' would remove -O1, -O2 etc. |
46 |
@@ -334,6 +342,11 @@ replace-cpu-flags() { |
47 |
return 0 |
48 |
} |
49 |
|
50 |
+# @FUNCTION: _is_flagq |
51 |
+# @USAGE: <variable> <flag> |
52 |
+# @INTERNAL |
53 |
+# @DESCRIPTION: |
54 |
+# Returns shell true if <flag> is in a given <variable>, else returns shell false. |
55 |
_is_flagq() { |
56 |
local x var="$1[*]" |
57 |
for x in ${!var} ; do |
58 |
-- |
59 |
2.31.0 |