Support #pragma once
commit9aadf85a29be2a74e46fc67b5313d41aee81dac7
authorJosh Triplett <josh@joshtriplett.org>
Fri, 19 Apr 2013 19:10:38 +0000 (19 12:10 -0700)
committerChristopher Li <sparse@chrisli.org>
Mon, 22 Apr 2013 03:55:10 +0000 (21 20:55 -0700)
tree75a01db121c05159645cf68216db6b4f6f9b2506
parentf022d1c8b777af93ef25205cbc34cb6b64c698a7
Support #pragma once

"#pragma once" acts like a multiple-inclusion guard affecting the entire file,
without an associated preprocessor symbol.

This allows use of sparse on projects that rely on #pragma once without
also using an ifndef-based multiple-inclusion guard, such as systemd;
without this change, sparse will get into an include loop.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Christopher Li <sparse@chrisli.org>
ident-list.h
pre-process.c
token.h
validation/pragma-once.c [new file with mode: 0644]