[clang] [clang][test] add testing for the AST matcher reference (PR #94248)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 27 04:44:57 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang` at step 6 "Add check check-clang".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/7609
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (Add check check-clang) failure: test (failure)
...
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:70:18: warning: ‘clang::PointerAuthSchema::TheKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Kind’
Kind TheKind : 2;
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:74:58: warning: ‘clang::PointerAuthSchema::SelectedAuthenticationMode’ is too small to hold all values of ‘enum class clang::PointerAuthenticationMode’
PointerAuthenticationMode SelectedAuthenticationMode : 2;
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:75:39: warning: ‘clang::PointerAuthSchema::DiscriminationKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Discrimination’
Discrimination DiscriminationKind : 2;
^
[58/301] Generating ASTMatchersDocTests.cpp
FAILED: tools/clang/unittests/ASTMatchers/ASTMatchersDocTests.cpp
cd /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/unittests/ASTMatchers && /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/utils/generate_ast_matcher_doc_tests.py --input-file /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/ASTMatchers/ASTMatchers.h --output-file /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/unittests/ASTMatchers/ASTMatchersDocTests.cpp
Traceback (most recent call last):
File "/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/utils/generate_ast_matcher_doc_tests.py", line 94, in <module>
statistics = defaultdict[str, int](int)
TypeError: 'type' object is not subscriptable
[59/301] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/TestReturnValueUnderConstruction.cpp.o
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/AST/Type.h:31:0,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/AST/DeclarationName.h:16,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/AST/DeclBase.h:19,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Analysis/AnalysisDeclContext.h:20,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Analysis/PathDiagnostic.h:17,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/unittests/StaticAnalyzer/CheckerRegistration.h:9,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/unittests/StaticAnalyzer/TestReturnValueUnderConstruction.cpp:9:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:70:18: warning: ‘clang::PointerAuthSchema::TheKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Kind’
Kind TheKind : 2;
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:74:58: warning: ‘clang::PointerAuthSchema::SelectedAuthenticationMode’ is too small to hold all values of ‘enum class clang::PointerAuthenticationMode’
PointerAuthenticationMode SelectedAuthenticationMode : 2;
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:75:39: warning: ‘clang::PointerAuthSchema::DiscriminationKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Discrimination’
Discrimination DiscriminationKind : 2;
^
[60/301] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/CFGMatchSwitchTest.cpp.o
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/AST/Type.h:31:0,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/AST/CanonicalType.h:17,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/AST/ASTContext.h:18,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Analysis/FlowSensitive/CFGMatchSwitch.h:22,
from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/unittests/Analysis/FlowSensitive/CFGMatchSwitchTest.cpp:9:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:70:18: warning: ‘clang::PointerAuthSchema::TheKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Kind’
Kind TheKind : 2;
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:74:58: warning: ‘clang::PointerAuthSchema::SelectedAuthenticationMode’ is too small to hold all values of ‘enum class clang::PointerAuthenticationMode’
PointerAuthenticationMode SelectedAuthenticationMode : 2;
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/include/clang/Basic/PointerAuthOptions.h:75:39: warning: ‘clang::PointerAuthSchema::DiscriminationKind’ is too small to hold all values of ‘enum class clang::PointerAuthSchema::Discrimination’
Discrimination DiscriminationKind : 2;
^
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/Support/Error.h:21:0,
```
</details>
https://github.com/llvm/llvm-project/pull/94248
More information about the cfe-commits
mailing list