[PATCH] D75759: [docs][FileCheck] add link to VerifyDiagnosticConsumer docs

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 09:54:14 PST 2020


nickdesaulniers created this revision.
nickdesaulniers added reviewers: rsmith, aaron.ballman.
Herald added subscribers: llvm-commits, thopre.
Herald added a project: LLVM.

I find the VerifyDiagnosticConsumer docs hard to find otherwise, and I
think most folks writing tests for Clang end up on the FileCheck page,
regardless of whether the test they're trying to write uses FileCheck or
just -verify.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75759

Files:
  llvm/docs/CommandGuide/FileCheck.rst


Index: llvm/docs/CommandGuide/FileCheck.rst
===================================================================
--- llvm/docs/CommandGuide/FileCheck.rst
+++ llvm/docs/CommandGuide/FileCheck.rst
@@ -739,3 +739,10 @@
 
 letting us set the :program:`FileCheck` variable ``DLOC`` to the desired value 
 ``0x00000233``, extracted from the line immediately preceding "``intd``".
+
+Clang `-verify` Tests
+---------------------
+For clang tests using `-verify` and `expected-error`, `expected-warning`, and
+`expected-note`, see the `VerifyDiagnosticConsumer
+<https://clang.llvm.org/doxygen/classclang_1_1VerifyDiagnosticConsumer.html#details>`_
+documentation.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75759.248764.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200306/9628b4fb/attachment-0001.bin>


More information about the llvm-commits mailing list