From fc8c9a6c7bec176299915c6adab120e1bf2ea4e9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 May 2021 17:28:44 +0100 Subject: Lots of test cases, few minor fixes --- lib/jsonParse.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/jsonParse.ll') diff --git a/lib/jsonParse.ll b/lib/jsonParse.ll index 52ad89f..c9c708c 100644 --- a/lib/jsonParse.ll +++ b/lib/jsonParse.ll @@ -17,6 +17,7 @@ class jsonBaseFlexLexer; #ifdef __clang__ #pragma clang diagnostic ignored "-Wnull-conversion" #endif +[[maybe_unused]]static constexpr auto x=getpid; %} beginobj "{" @@ -152,7 +153,6 @@ text [^\\\"]* <*>[ \t\r\n\f] { } -%% - -// Make iwyu think unistd.h is required -[[maybe_unused]]static auto x=getpid; +<*>. { + LexerError("Unexpected input"); +} -- cgit v1.2.3