================
@@ -3476,6 +3492,53 @@ diagnostic verifier will pass. However, if the expected
error does not appear
or appears in a different location than expected, or if additional diagnostics
appear, the diagnostic verifier will fail and emit information as to why.
+Directive Syntax
+~~~~~~~~~~~~~~~~
+EBNF syntax description of the directives is the following:
+
+.. productionlist:: verify-grammar
+ directive: prefix , "-" , diagnostic-kind , [ regex-match ] , [
diagnotic-loc ] , [ " " , quantifier ] , "{" , [ delimiter-open ], "{", [
diagnostic-text ] , "}" , [ delimiter-close ], "}" ;
----------------
AaronBallman wrote:
It might make sense to produce this with C++ grammar instead of EBNF; I got
hung up on the delimiter open and close syntax here (not super familiar with
EBNF) and couldn't tell what it was trying to tell me.
https://github.com/llvm/llvm-project/pull/179835
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits