[all-commits] [llvm/llvm-project] dd0042: Add StringRef::consumeInteger(APInt)

RoboTux via All-commits all-commits at lists.llvm.org
Tue May 23 06:01:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd00421c60716973f5d919967fd4d6ef84025979
      https://github.com/llvm/llvm-project/commit/dd00421c60716973f5d919967fd4d6ef84025979
  Author: Thomas Preud'homme <thomas.preudhomme at arm.com>
  Date:   2023-05-23 (Tue, 23 May 2023)

  Changed paths:
    M llvm/include/llvm/ADT/StringRef.h
    M llvm/lib/Support/StringRef.cpp
    M llvm/unittests/ADT/StringRefTest.cpp

  Log Message:
  -----------
  Add StringRef::consumeInteger(APInt)

This will be required to allow arbitrary precision support to
FileCheck's numeric variables and expressions. Note: as per
getAsInteger(), this does not support negative value. If there is
interest for that it can be added in a separate patch.

Reviewed By: dblaikie

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




More information about the All-commits mailing list