[all-commits] [llvm/llvm-project] 86118e: [Support] Provide access to the full mapping in ll...

Eric Li via All-commits all-commits at lists.llvm.org
Tue Sep 20 08:09:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86118ec2d0e9cf67a1036930d8b3a31a4e0b1744
      https://github.com/llvm/llvm-project/commit/86118ec2d0e9cf67a1036930d8b3a31a4e0b1744
  Author: Eric Li <li.zhe.hua at gmail.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M llvm/include/llvm/Testing/Support/Annotations.h
    M llvm/lib/Testing/Support/Annotations.cpp
    M llvm/unittests/Support/AnnotationsTest.cpp

  Log Message:
  -----------
  [Support] Provide access to the full mapping in llvm::Annotations

Providing access to the mapping of annotations allows test helpers to
be expressive by using the annotations as expectations. For example, a
matcher could verify that all annotated points were matched by a
matcher, or that an refactoring surgically modifies specific ranges.

Differential Revision: https://reviews.llvm.org/D134072




More information about the All-commits mailing list