[all-commits] [llvm/llvm-project] 497a86: [FileCheck]: Fix diagnostics for NOT prefixes (#78...

Vinayak Dev via All-commits all-commits at lists.llvm.org
Fri Jan 19 07:08:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 497a8604b39f8b5736c389f6d7ccd8242a122cbf
      https://github.com/llvm/llvm-project/commit/497a8604b39f8b5736c389f6d7ccd8242a122cbf
  Author: Vinayak Dev <104419489+vinayakdsci at users.noreply.github.com>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M llvm/lib/FileCheck/FileCheck.cpp
    M llvm/lib/FileCheck/FileCheckImpl.h
    M llvm/test/FileCheck/check-ignore-case.txt
    A llvm/test/FileCheck/check-not-custom-prefix.txt
    M llvm/test/FileCheck/dump-input/annotations.txt
    M llvm/test/FileCheck/implicit-check-not.txt

  Log Message:
  -----------
  [FileCheck]: Fix diagnostics for NOT prefixes (#78412)

Fixes #70221 

Fix a bug in FileCheck that corrects the error message when multiple
prefixes are provided
through --check-prefixes and one of them is a PREFIX-NOT.

Earlier, only the first of the provided prefixes was displayed as the
erroneous prefix, while the
actual error might be on the prefix that occurred at the end of the
prefix list in the input file.

Now, the right NOT prefix is shown in the error message.




More information about the All-commits mailing list