[all-commits] [llvm/llvm-project] 3cf14a: [Support] Add support for attaching payloads to po...

Tom Praschan via All-commits all-commits at lists.llvm.org
Fri Nov 18 05:00:44 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cf14a7bdce08f8fe03d987a2d99c6ea47c58c03
      https://github.com/llvm/llvm-project/commit/3cf14a7bdce08f8fe03d987a2d99c6ea47c58c03
  Author: Tom Praschan <13141438+tom-anders at users.noreply.github.com>
  Date:   2022-11-18 (Fri, 18 Nov 2022)

  Changed paths:
    M clang-tools-extra/clangd/unittests/Annotations.cpp
    M clang-tools-extra/clangd/unittests/Annotations.h
    M llvm/include/llvm/Testing/Support/Annotations.h
    M llvm/lib/Testing/Support/Annotations.cpp
    M llvm/unittests/Support/AnnotationsTest.cpp

  Log Message:
  -----------
  [Support] Add support for attaching payloads to points and ranges

This is useful where tests previously encoded information in the name
names of ranges and points. Currently, this is pretty limited because
names consist of only alphanumeric characters and '_'.

With this patch, we can keep the names simple and attach optional
payloads to ranges and points instead.

The new syntax should be fully backwards compatible (if I haven't missed
anything). I tested this against clangd unit tests and everything still passes.

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




More information about the All-commits mailing list