[PATCH] D144963: [UTC] Include return type/attributes under --version 2

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 06:50:00 PST 2023


nikic created this revision.
nikic added reviewers: asb, arichardson, nhaehnle, arsenm, bogner.
Herald added a subscriber: StephenFan.
Herald added a project: All.
nikic requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

If `--function-signature` is used with `--version 2`, then also include the return type/attributes in the check lines. This is the implementation of D133943 <https://reviews.llvm.org/D133943> rebased on the `--version` mechanism from D142473 <https://reviews.llvm.org/D142473>.

This doesn't bump the default version yet, because I'd like to do that together with D140212 <https://reviews.llvm.org/D140212> (which enables `--function-signature` by default), as these changes seem closely related. For now this functionality can be accessed by explicitly passing `--version 2` to UTC.

Fixes https://github.com/llvm/llvm-project/issues/61058.


https://reviews.llvm.org/D144963

Files:
  clang/test/utils/update_cc_test_checks/Inputs/mangled_names.c.funcsig.v2.expected
  clang/test/utils/update_cc_test_checks/mangled_names.test
  llvm/utils/UpdateTestChecks/asm.py
  llvm/utils/UpdateTestChecks/common.py
  llvm/utils/UpdateTestChecks/isel.py
  llvm/utils/update_cc_test_checks.py
  llvm/utils/update_test_checks.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144963.501121.patch
Type: text/x-patch
Size: 13981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230228/d01e5a39/attachment.bin>


More information about the llvm-commits mailing list