summaryrefslogtreecommitdiff
path: root/CC/RULES
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-12 10:36:49 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-14 12:27:44 +0200
commit8ce1c4589e553f7f79893c712b8f4847a098ce75 (patch)
tree771482d1c422d04844bc4c3511bf4a64ba699d89 /CC/RULES
parent5f0b15ec07111b3767c89b19d69a98a759b582f2 (diff)
downloadrules-cc-8ce1c4589e553f7f79893c712b8f4847a098ce75.tar.gz
Make CC binary and library support providing information for linting
If the configuration variable "LINT" is set, also provide information on compile actions and header files (with preprocessing as described command, in particular also providing the correct flags) in correct dependency context. In this way, lint rules can request the needed information for performing their checks.
Diffstat (limited to 'CC/RULES')
-rw-r--r--CC/RULES12
1 files changed, 12 insertions, 0 deletions
diff --git a/CC/RULES b/CC/RULES
index 93407ac..85c7456 100644
--- a/CC/RULES
+++ b/CC/RULES
@@ -407,6 +407,7 @@
, "AR"
, "ENV"
, "DEBUG"
+ , "LINT"
]
, "implicit": {"defaults": ["defaults"]}
, "field_doc":
@@ -501,6 +502,11 @@
]
, "ENV": ["The environment for any action generated."]
, "DEBUG": ["Compute the debug-stage, needed for local debugging."]
+ , "LINT":
+ [ "Also provide nodes describing compile actions and header files;"
+ , "those can be used by lint rules (doing also the config transition)"
+ , "for additional checks."
+ ]
}
, "artifacts_doc":
["The actual library (libname.a) staged in the specified directory"]
@@ -637,6 +643,7 @@
, "ADD_CXXFLAGS"
, "ENV"
, "DEBUG"
+ , "LINT"
]
, "implicit": {"defaults": ["defaults"]}
, "field_doc":
@@ -695,6 +702,11 @@
]
, "ENV": ["The environment for any action generated."]
, "DEBUG": ["Compute the debug-stage, needed for local debugging."]
+ , "LINT":
+ [ "Also provide nodes describing compile actions and header files;"
+ , "those can be used by lint rules (doing also the config transition)"
+ , "for additional checks."
+ ]
}
, "artifacts_doc": ["The final binary, staged to the given directory"]
, "runfiles_doc": ["None"]