================ @@ -3451,22 +3451,38 @@ are similar. Testing ------- All functional changes to Clang should come with test coverage demonstrating -the change in behavior. +the change in behavior. There are four kinds of tests: + +* Unit tests: such tests are placed in ``clang/test/unittest``. +* Diagnostic tests: such tests ensures that only specific diagnostics are + emitted at specific source lines. Those tests are using ``-verify`` mode of + ``-cc1``, which is described below in + :ref:`"Verifying Diagnostics" <verifying-diagnostics>`. Additional + provisions for tests for C++ defect reports are described in ... section. +* AST dump tests: such tests pass AST dump to + `FileCheck <https://llvm.org/docs/CommandGuide/FileCheck.html>`_ utility, + which check presence of certain patterns (or lack of thereof). +* LLVM IR tests: in such tests LLVM IR output of Clang is checked, which is + needed in cases when checking diagnostics is not sufficient (e.g. when + testing exception handling or object lifetime). Such tests pass LLVM IR + output to ---------------- AaronBallman wrote:
```suggestion output to the ``` https://github.com/llvm/llvm-project/pull/179835 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
