[all-commits] [llvm/llvm-project] 0c5025: FileError: Support zero-length file names

David Blaikie via All-commits all-commits at lists.llvm.org
Wed Sep 8 16:17:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c502507f4627f72eeecbb5e78c2f9c1cb8f9219
      https://github.com/llvm/llvm-project/commit/0c502507f4627f72eeecbb5e78c2f9c1cb8f9219
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M llvm/include/llvm/Support/Error.h
    M llvm/unittests/Support/ErrorTest.cpp

  Log Message:
  -----------
  FileError: Support zero-length file names

It's a common error in an API - to try to open an empty file, so it
seems like a reasonable FileError to produce "hey, you tried to open an
empty file" and to handle it the same way as any other file error.


  Commit: f03689ace598b2c5f8263bbc5afbc4e5bc33ac43
      https://github.com/llvm/llvm-project/commit/f03689ace598b2c5f8263bbc5afbc4e5bc33ac43
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M llvm/include/llvm/Support/Error.h
    M llvm/unittests/Support/ErrorTest.cpp

  Log Message:
  -----------
  FileError: Provide a way to retrieve the underlying error string without the file name

For use with APIs that want to report the file name in a different
syntactic form, have other knowledge of the filename, etc.


Compare: https://github.com/llvm/llvm-project/compare/a024d35b3885...f03689ace598


More information about the All-commits mailing list