|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v4 1/2] automation/eclair: make the docs for MISRA C:2012 Dir 4.1 visible to ECLAIR
Hi, On 15/11/2023 11:02, Nicola Vetrini wrote: On 2023-11-14 23:12, Julien Grall wrote:Hi, On 14/11/2023 15:36, Nicola Vetrini wrote:To be able to check for the existence of the necessary subsections inthe documentation for MISRA C:2012 Dir 4.1, ECLAIR needs to have a sourcefile that is built. This file is generated from 'C-runtime-failures.rst' in docs/misra and the configuration is updated accordingly. Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx> --- Changes from RFC: - Dropped unused/useless code - Revised the sed command - Revised the clean target Changes in v2: - Added explanative comment to the makefile - printf instead of echo Changes in v3: - Terminate the generated file with a newline - Build it with -std=c99, so that the documentation for D1.1 applies. Changes in v5: - Transform and build the file directly in the eclair-specific directory --- automation/eclair_analysis/build.sh | 21 +++++++++++++++++++-- automation/eclair_analysis/prepare.sh | 7 ++++--- 2 files changed, 23 insertions(+), 5 deletions(-)diff --git a/automation/eclair_analysis/build.sh b/automation/eclair_analysis/build.sh
I am confused. I am suggesting to use:
sed -e 's|\*/|*//*|g' "../../docs/misc/${doc}" >> "${doc}.tmp"
So *.tmp is still created at the same place.
Yes but it makes sense for the Makefile because the target would not be re-executed if *.c exists. But I don't think this is the case for you because you are using a bash script. So your function should always be re-executed regardless on whether it was interrupted or not. ++ # Cannot redirect to /dev/null because it would be excluded from the analysis This is not only about code evolving. It makes easier to spot your are using the same compiler. I would not have made the remark if you were using 'gcc'. But I noticed you were using gcc-12 and originally thought it was a mistake until I saw the second use. The advantage of a variable CC (and CXX) is you can add a comment on top why you are specifically requestion gcc-12? IOW, why is gcc not fine? Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |