[clang] [clang-tools-extra] FunctionDecl::getFunctionTypeLoc: ignore function type attributes (PR #118420)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 19 04:44:47 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-win-fast` running on `as-builder-3` while building `clang-tools-extra,clang` at step 8 "test-build-unified-tree-check-clang-unit".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/2/builds/22043

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 8 (test-build-unified-tree-check-clang-unit) failure: test (failure)
******************** TEST 'Clang-Unit :: AST/./ASTTests.exe/54/115' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\AST\.\ASTTests.exe-Clang-Unit-9516-54-115.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=115 GTEST_SHARD_INDEX=54 C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\AST\.\ASTTests.exe
--

Script:
--
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\AST\.\ASTTests.exe --gtest_filter=Attr.AnnotateType
--
input.cc:16:20: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   16 |     __attribute__((preserve_most)) int f_cc_preserve_most();
      |                    ^
input.cc:19:5: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   19 |     PRESERVE_MOST int f_macro_attribue();
      |     ^
input.cc:18:42: note: expanded from macro 'PRESERVE_MOST'
   18 |     #define PRESERVE_MOST __attribute__((preserve_most))
      |                                          ^
input.cc:21:25: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   21 |     int (__attribute__((preserve_most)) f_paren_attribute)();
      |                         ^
input.cc:24:7: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   24 |       PRESERVE_MOST
      |       ^
input.cc:18:42: note: expanded from macro 'PRESERVE_MOST'
   18 |     #define PRESERVE_MOST __attribute__((preserve_most))
      |                                          ^
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\AST\AttrTest.cpp(186): error: Value of: FT->getCallConv() == CC_PreserveMost
  Actual: false
Expected: true

O: f_macro_attribue
O: f_paren_attribute
O: f_w_paren_and_attr

C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\AST\AttrTest.cpp:186
Value of: FT->getCallConv() == CC_PreserveMost
  Actual: false
Expected: true



********************


```

</details>

https://github.com/llvm/llvm-project/pull/118420


More information about the cfe-commits mailing list