github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
The build failed before running any tests. Click on a failure below to see the
details.
<details>
<summary>tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o</summary>
```
FAILED:
tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o
sccache /opt/llvm/bin/clang++ -D_DEBUG -D_GLIBCXX_ASSERTIONS
-D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE
-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clang-tidy/hicpp
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/hicpp
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clang-tidy
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -gmlt
-fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror
-Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
-Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
-Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported
-fdiagnostics-color -ffunction-sections -fdata-sections -fno-common
-Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG
-fno-exceptions -funwind-tables -fno-rtti -MD -MT
tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o
-MF
tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o.d
-o
tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/obj.clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o
-c
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp:84:34:
error: use of undeclared identifier 'portability'
84 | CheckFactories.registerCheck<portability::NoAssemblerCheck>(
| ^
1 error generated.
```
</details>
<details>
<summary>tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/PortabilityTidyModule.cpp.o</summary>
```
FAILED:
tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/PortabilityTidyModule.cpp.o
sccache /opt/llvm/bin/clang++ -D_DEBUG -D_GLIBCXX_ASSERTIONS
-D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE
-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clang-tidy/portability
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clang-tidy
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -gmlt
-fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror
-Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
-Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
-Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported
-fdiagnostics-color -ffunction-sections -fdata-sections -fno-common
-Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG
-fno-exceptions -funwind-tables -fno-rtti -MD -MT
tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/PortabilityTidyModule.cpp.o
-MF
tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/PortabilityTidyModule.cpp.o.d
-o
tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/PortabilityTidyModule.cpp.o
-c
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/PortabilityTidyModule.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/PortabilityTidyModule.cpp:27:34:
error: unknown type name 'NoAssemblerCheck'; did you mean
'hicpp::NoAssemblerCheck'?
27 | CheckFactories.registerCheck<NoAssemblerCheck>(
| ^~~~~~~~~~~~~~~~
| hicpp::NoAssemblerCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.h:20:7:
note: 'hicpp::NoAssemblerCheck' declared here
20 | class NoAssemblerCheck : public ClangTidyCheck {
| ^
1 error generated.
```
</details>
<details>
<summary>tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/NoAssemblerCheck.cpp.o</summary>
```
FAILED:
tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/NoAssemblerCheck.cpp.o
sccache /opt/llvm/bin/clang++ -D_DEBUG -D_GLIBCXX_ASSERTIONS
-D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE
-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clang-tidy/portability
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clang-tidy
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include
-I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -gmlt
-fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror
-Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
-Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
-Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported
-fdiagnostics-color -ffunction-sections -fdata-sections -fno-common
-Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG
-fno-exceptions -funwind-tables -fno-rtti -MD -MT
tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/NoAssemblerCheck.cpp.o
-MF
tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/NoAssemblerCheck.cpp.o.d
-o
tools/clang/tools/extra/clang-tidy/portability/CMakeFiles/obj.clangTidyPortabilityModule.dir/NoAssemblerCheck.cpp.o
-c
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:16:6:
error: use of undeclared identifier 'NoAssemblerCheck'; did you mean
'hicpp::NoAssemblerCheck'?
16 | void NoAssemblerCheck::registerMatchers(MatchFinder *Finder) {
| ^~~~~~~~~~~~~~~~
| hicpp::NoAssemblerCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.h:20:7:
note: 'hicpp::NoAssemblerCheck' declared here
20 | class NoAssemblerCheck : public ClangTidyCheck {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:16:6:
error: use of undeclared identifier 'NoAssemblerCheck'; did you mean
'hicpp::NoAssemblerCheck'?
16 | void NoAssemblerCheck::registerMatchers(MatchFinder *Finder) {
| ^~~~~~~~~~~~~~~~
| hicpp::NoAssemblerCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.h:20:7:
note: 'hicpp::NoAssemblerCheck' declared here
20 | class NoAssemblerCheck : public ClangTidyCheck {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:16:24:
error: cannot define or redeclare 'registerMatchers' here because namespace
'portability' does not enclose namespace 'NoAssemblerCheck'
16 | void NoAssemblerCheck::registerMatchers(MatchFinder *Finder) {
| ~~~~~~~~~~~~~~~~~~^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:17:3:
error: use of undeclared identifier 'Finder'
17 | Finder->addMatcher(asmStmt().bind("asm-stmt"), this);
| ^~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:17:50:
error: invalid use of 'this' outside of a non-static member function
17 | Finder->addMatcher(asmStmt().bind("asm-stmt"), this);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:18:3:
error: use of undeclared identifier 'Finder'
18 | Finder->addMatcher(fileScopeAsmDecl().bind("asm-file-scope"), this);
| ^~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:18:65:
error: invalid use of 'this' outside of a non-static member function
18 | Finder->addMatcher(fileScopeAsmDecl().bind("asm-file-scope"), this);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:19:3:
error: use of undeclared identifier 'Finder'
19 | Finder->addMatcher(varDecl(hasAttr(attr::AsmLabel)).bind("asm-var"),
this);
| ^~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:19:72:
error: invalid use of 'this' outside of a non-static member function
19 | Finder->addMatcher(varDecl(hasAttr(attr::AsmLabel)).bind("asm-var"),
this);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:22:6:
error: use of undeclared identifier 'NoAssemblerCheck'; did you mean
'hicpp::NoAssemblerCheck'?
22 | void NoAssemblerCheck::check(const MatchFinder::MatchResult &Result) {
| ^~~~~~~~~~~~~~~~
| hicpp::NoAssemblerCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.h:20:7:
note: 'hicpp::NoAssemblerCheck' declared here
20 | class NoAssemblerCheck : public ClangTidyCheck {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:22:6:
error: use of undeclared identifier 'NoAssemblerCheck'; did you mean
'hicpp::NoAssemblerCheck'?
22 | void NoAssemblerCheck::check(const MatchFinder::MatchResult &Result) {
| ^~~~~~~~~~~~~~~~
| hicpp::NoAssemblerCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.h:20:7:
note: 'hicpp::NoAssemblerCheck' declared here
20 | class NoAssemblerCheck : public ClangTidyCheck {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:22:24:
error: cannot define or redeclare 'check' here because namespace 'portability'
does not enclose namespace 'NoAssemblerCheck'
22 | void NoAssemblerCheck::check(const MatchFinder::MatchResult &Result) {
| ~~~~~~~~~~~~~~~~~~^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:24:25:
error: use of undeclared identifier 'Result'
24 | if (const auto *ASM = Result.Nodes.getNodeAs<AsmStmt>("asm-stmt"))
| ^~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:26:24:
error: redefinition of 'ASM'
26 | else if (const auto *ASM =
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:24:19:
note: previous definition is here
24 | if (const auto *ASM = Result.Nodes.getNodeAs<AsmStmt>("asm-stmt"))
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:27:16:
error: use of undeclared identifier 'Result'
27 | Result.Nodes.getNodeAs<FileScopeAsmDecl>("asm-file-scope"))
| ^~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:29:24:
error: redefinition of 'ASM'
29 | else if (const auto *ASM = Result.Nodes.getNodeAs<VarDecl>("asm-var"))
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:26:24:
note: previous definition is here
26 | else if (const auto *ASM =
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:29:30:
error: use of undeclared identifier 'Result'
29 | else if (const auto *ASM = Result.Nodes.getNodeAs<VarDecl>("asm-var"))
| ^~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/portability/NoAssemblerCheck.cpp:34:3:
error: unexpected namespace name 'diag': expected expression
34 | diag(ASMLocation, "do not use inline assembler in safety-critical code");
| ^
18 errors generated.
```
</details>
If these failures are unrelated to your changes (for example tests are broken
or flaky at HEAD), please open an issue at
https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/184030
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits