[clang-tools-extra] [include-cleaner] Add handling for new/delete expressions (PR #104033)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 16 04:31:38 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang-tools-extra` at step 5 "ninja check 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/2849
Here is the relevant piece of the build log for the reference:
```
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'clangIncludeCleaner Unit Tests :: ./ClangIncludeCleanerTests/87/88' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/tools/clang/tools/extra/include-cleaner/unittests/./ClangIncludeCleanerTests-clangIncludeCleaner Unit Tests-4106719-87-88.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=88 GTEST_SHARD_INDEX=87 /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/tools/clang/tools/extra/include-cleaner/unittests/./ClangIncludeCleanerTests
--
Script:
--
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/tools/clang/tools/extra/include-cleaner/unittests/./ClangIncludeCleanerTests --gtest_filter=WalkAST.OperatorNewDelete
--
../llvm/clang/lib/Testing/TestAST.cpp:49: Failure
Failed
In file included from <built-in>:475:
./target.h:1:7: error: 'operator new' takes type size_t ('unsigned int') as first parameter
1 | void* operator new(unsigned long, void*);
| ^
../llvm/clang/lib/Testing/TestAST.cpp:49: Failure
Failed
input.mm:1:34: error: no matching 'operator new' function for non-allocating placement new expression; include <new>
1 | struct Bar { void foo() { Bar b; new (&b) Bar; } };
| ^ ~~~~
../llvm/clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp:109: Failure
Failed
./target.h:1:7: location not marked used with type explicit
1 | void* operator new(unsigned long, void*);
| ^
from code:
struct Bar { void foo() { Bar b; ^new (&b) Bar; } };
../llvm/clang/lib/Testing/TestAST.cpp:49
Failed
In file included from <built-in>:475:
./target.h:1:7: error: 'operator new' takes type size_t ('unsigned int') as first parameter
1 | void* operator new(unsigned long, void*);
| ^
../llvm/clang/lib/Testing/TestAST.cpp:49
Failed
input.mm:1:34: error: no matching 'operator new' function for non-allocating placement new expression; include <new>
1 | struct Bar { void foo() { Bar b; new (&b) Bar; } };
| ^ ~~~~
...
```
https://github.com/llvm/llvm-project/pull/104033
More information about the cfe-commits
mailing list