diff options
| author | John Levon <levon@movementarian.org> | 2018-11-29 10:42:27 +0000 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-11-29 23:48:21 +0100 |
| commit | d3038d8fce94959bc9bcbcff698d272d0f610364 (patch) | |
| tree | 0cfd3d389d22fa944c8d8785e39524f6688d6356 /validation | |
| parent | 756844b2a77ddf5396891cb4dd055de315dfdfdc (diff) | |
| download | sparse-dev-d3038d8fce94959bc9bcbcff698d272d0f610364.tar.gz | |
Ignore #ident directives
Legacy code can be littered with the non-standard "#ident" directive;
ignore it.
Signed-off-by: John Levon <levon@movementarian.org>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/preprocessor/ident-pragma.c | 12 | ||||
| -rw-r--r-- | validation/preprocessor/ident.c | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/validation/preprocessor/ident-pragma.c b/validation/preprocessor/ident-pragma.c new file mode 100644 index 00000000..81abdd7b --- /dev/null +++ b/validation/preprocessor/ident-pragma.c @@ -0,0 +1,12 @@ +#pragma ident "foo" + +/* + * check-description: check that '#pragma ident ... " is ignored. + * check-name: ident-pragma + * check-command: sparse -E $file + * + * check-output-start + + + * check-output-end + */ diff --git a/validation/preprocessor/ident.c b/validation/preprocessor/ident.c new file mode 100644 index 00000000..3e7f3ad0 --- /dev/null +++ b/validation/preprocessor/ident.c @@ -0,0 +1,12 @@ +#ident "foo" + +/* + * check-description: check that the non-standard "#ident ..." is ignored. + * check-name: ident + * check-command: sparse -E $file + * + * check-output-start + + + * check-output-end + */ |
