[all-commits] [llvm/llvm-project] 5c2441: [lit] Avoid re-iterating result codes in different...

Julian Lettner via All-commits all-commits at lists.llvm.org
Wed Jun 17 11:41:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c244115c98acf61a5d5b867c590a34a6be6f5b9
      https://github.com/llvm/llvm-project/commit/5c244115c98acf61a5d5b867c590a34a6be6f5b9
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M llvm/utils/lit/lit/Test.py
    M llvm/utils/lit/lit/main.py
    M llvm/utils/lit/tests/Inputs/custom-result-category/format.py

  Log Message:
  -----------
  [lit] Avoid re-iterating result codes in different places

Let's have one canonical place to define ResultCode instances and their
labels.

Also make ResultCode's `__init__` function self-registering to better
support custom ResultCodes.




More information about the All-commits mailing list