Module Name: src Committed By: rillig Date: Sat Jan 21 13:48:40 UTC 2023
Modified Files: src/tests/usr.bin/xlint/lint1: c11_atomic.c c99_atomic.c src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: lint: add support for C11 '_Atomic' as atomic-type-specifier Following the C11 grammar, the keyword '_Atomic' needs to be a separate syntactic category, to avoid further conflicts in the grammar. The two newly added conflicts in the grammar would come into play when mixing traditional C with C11, in a type name without an implicit 'int'. If the type '_Atomic(int)*' were parsed as '_Atomic int(int)*', the trailing '*' would be a syntax error. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/c11_atomic.c \ src/tests/usr.bin/xlint/lint1/c99_atomic.c cvs rdiff -u -r1.430 -r1.431 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.141 -r1.142 src/usr.bin/xlint/lint1/lex.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.