This is an automated email from the git hooks/post-receive script.
tcwg-buildslave pushed a change to branch linaro-local/ci/tcwg_kernel/llvm-master-arm-stable-defconfig in repository toolchain/ci/llvm-project.
from 5f2543f8dc0 SymbolRecord - consistently use explicit for single operand [...] adds 67165126703 [X86] scaleShuffleMask - use size_t Scale to avoid overflow [...] adds 459a93659a9 Revert r374671: "[lit] Try errors="ignore" for decode intro [...] adds b005d9e86ff Revert r374666: "[lit] Adjust error handling for decode int [...] adds e9d3b8192ed Revert r374665: "[lit] Try yet again to fix new tests that [...] adds 9abfa581711 Revert r374653: "[lit] Fix a few oversights in r374651 that [...] adds 57046e8fd9b Revert r374652: "[lit] Fix internal diff's --strip-trailing [...] adds b3f157a9008 Revert 374651: "Reland r374392: [lit] Extend internal diff [...] adds f6210fc24f2 Revert r374650: "Reland r374390: [lit] Extend internal diff [...] adds 199f5cd8636 Revert r374649: "Reland r374389: [lit] Clean up internal di [...] adds 3049748e15b Revert r374648: "Reland r374388: [lit] Make internal diff w [...] adds e198823b87b [libc++][test] Silence MSVC warning in std::optional test adds b12012cc980 gn build: (manually) merge r374663 adds e95d1ca1e2e Revert r374663 "[clang-format] Proposal for clang-format to [...] adds 92694eba933 [SROA] Reuse existing lifetime markers if possible adds ea1e81f54b9 [Attributor][FIX] Avoid modifying naked/optnone functions adds 9daf51910b1 [Attributor][FIX] Add missing function declaration in test case adds d20f80780e0 [Attributor][FIX] Do not apply h2s for arbitrary mallocs adds af6e4797330 [Attributor][FIX] Ensure h2s doesn't trigger on escaped pointers adds 3753aa75d2f [Attributor][NFC] Expose call site traversal without QueryingAA adds e9d3f708220 [Attributor] Remove unused verification flag adds 4868841ee4f [Attributor][FIX] Remove leftover, now unused, variable adds 4056e7f02a4 [Attributor][FIX] Avoid splitting blocks if possible adds 8fe8adb9f19 [X86] Add v2i64->v2i32/v2i16/v2i8 test cases to the trunc p [...] adds bf57aa2b25c [X86] Enable v4i32->v4i16 and v8i16->v8i8 saturating trunca [...] adds d50cb9ac8ca [X86] Add a one use check on the setcc to the min/max canon [...] adds 82f8f8b44cd [clang-tidy] New checker for not null-terminated result cau [...] adds 0fb5a1ee97a gn build: Merge r374707 adds 2e77fcb05b3 [clang-tidy] bugprone-not-null-terminated-result: Sphinx ad [...] adds adac533d957 [clang-tidy] bugprone-not-null-terminated-result: Sphinx ad [...] adds 3965c76abcc [clang-tidy] bugprone-not-null-terminated-result: checker a [...] adds 78037577f12 [clang-tidy] bugprone-not-null-terminated-result: checker a [...] adds b56989bcc7d [clang-tidy] bugprone-not-null-terminated-result: checker a [...] adds d2b790eb680 [clang-tidy] bugprone-not-null-terminated-result: checker a [...] adds 944a051ebbd IRTranslator - silence static analyzer null dereference war [...] adds 2c775709f6c BlockInCriticalSectionChecker - silence static analyzer dyn [...] adds 51fa7409e7b Make most clangd unittests pass on Windows adds e84916d8917 [X86][AVX] Add i686 avx splat tests adds 6a1f7d6c9ff [clang-format] Proposal for clang-format to give compiler s [...] adds d0b8db9ab8c gn build: (manually) merge r374720 adds 1f92d8b5449 [libc++][test] <=> now has a feature-test macro adds 80e088e1417 [libc++][test] std::variant test cleanup adds e4c58db8bc1 [X86] getTargetShuffleInputs - add KnownUndef/Zero output support adds 3efafd6c38a [X86] SimplifyMultipleUseDemandedBitsForTargetNode - use ge [...] new 8e2561974d9 [NFC][InstCombine] More test for "sign bit test via shifts" [...] new 9d80a722d7f Make the last to clangd unit tests pass on Windows. new f90728c3227 [InstCombine] don't assume 'inbounds' for bitcast deref or [...] new b32e4664a71 [ConstantFold] fix inconsistent handling of extractelement [...] new 5d8870bc765 Add missing "REQUIRES: shell" to system-include-extractor.test
The 5 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: .../clang-tidy/bugprone/BugproneTidyModule.cpp | 3 + .../clang-tidy/bugprone/CMakeLists.txt | 1 + .../bugprone/NotNullTerminatedResultCheck.cpp | 1007 ++++++++++++++++++ .../bugprone/NotNullTerminatedResultCheck.h | 67 ++ .../clangd/test/system-include-extractor.test | 3 + .../clangd/unittests/DiagnosticsTests.cpp | 10 +- .../clangd/unittests/FindTargetTests.cpp | 16 + .../clangd/unittests/ParsedASTTests.cpp | 3 + .../clangd/unittests/SelectionTests.cpp | 10 +- .../clangd/unittests/SemanticHighlightingTests.cpp | 10 +- .../clangd/unittests/TweakTesting.cpp | 2 + clang-tools-extra/clangd/unittests/TweakTesting.h | 3 + clang-tools-extra/clangd/unittests/TweakTests.cpp | 11 +- clang-tools-extra/clangd/unittests/XRefsTests.cpp | 9 +- clang-tools-extra/docs/ReleaseNotes.rst | 9 + .../checks/bugprone-not-null-terminated-result.rst | 132 +++ clang-tools-extra/docs/clang-tidy/checks/list.rst | 1 + .../not-null-terminated-result-c.h | 39 + .../not-null-terminated-result-cxx.h | 65 ++ ...ll-terminated-result-in-initialization-strlen.c | 84 ++ ...not-null-terminated-result-memcpy-before-safe.c | 71 ++ ...-not-null-terminated-result-memcpy-safe-cxx.cpp | 124 +++ ...-not-null-terminated-result-memcpy-safe-other.c | 112 ++ ...gprone-not-null-terminated-result-memcpy-safe.c | 124 +++ .../bugprone-not-null-terminated-result-strlen.c | 123 +++ .../bugprone-not-null-terminated-result-wcslen.cpp | 111 ++ ...not-null-terminated-result-wmemcpy-safe-cxx.cpp | 111 ++ .../Checkers/BlockInCriticalSectionChecker.cpp | 2 +- clang/test/Format/dry-run-alias.cpp | 2 +- clang/test/Format/dry-run.cpp | 2 +- .../make_optional_explicit.pass.cpp | 2 +- .../variant.variant/variant.assign/conv.pass.cpp | 1 + .../variant.variant/variant.assign/copy.pass.cpp | 2 +- .../variant.variant/variant.assign/move.pass.cpp | 2 +- .../variant.variant/variant.ctor/conv.pass.cpp | 3 +- .../variant.mod/emplace_index_args.pass.cpp | 2 +- .../variant.mod/emplace_type_args.pass.cpp | 2 +- libcxx/test/support/test_macros.h | 5 +- llvm/include/llvm/Transforms/IPO/Attributor.h | 25 +- llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 7 +- llvm/lib/IR/ConstantFold.cpp | 9 +- llvm/lib/Target/X86/X86ISelLowering.cpp | 81 +- llvm/lib/Target/X86/X86ISelLowering.h | 8 +- llvm/lib/Transforms/IPO/Attributor.cpp | 127 ++- .../Transforms/InstCombine/InstCombineCasts.cpp | 12 +- llvm/lib/Transforms/Scalar/SROA.cpp | 10 +- llvm/test/CodeGen/X86/avx-splat.ll | 165 ++- llvm/test/CodeGen/X86/midpoint-int.ll | 605 +++++------ llvm/test/CodeGen/X86/vector-trunc-packus.ll | 1064 ++++++++++++++++++- llvm/test/CodeGen/X86/vector-trunc-ssat.ll | 1100 ++++++++++++++++++-- llvm/test/CodeGen/X86/vector-trunc-usat.ll | 718 +++++++++++++ llvm/test/MC/ARM/preserve-comments-arm.s | 2 +- llvm/test/MC/AsmParser/preserve-comments.s | 2 +- llvm/test/Transforms/ConstProp/InsertElement.ll | 2 +- .../test/Transforms/FunctionAttrs/heap_to_stack.ll | 124 ++- llvm/test/Transforms/FunctionAttrs/liveness.ll | 4 +- llvm/test/Transforms/FunctionAttrs/nonnull.ll | 26 + .../Transforms/FunctionAttrs/noreturn_async.ll | 8 +- .../test/Transforms/FunctionAttrs/noreturn_sync.ll | 4 +- .../Transforms/InstCombine/load-bitcast-vec.ll | 4 +- .../shift-amount-reassociation-in-bittest.ll | 8 + ...ft-amount-reassociation-with-truncation-ashr.ll | 26 +- ...ft-amount-reassociation-with-truncation-lshr.ll | 26 +- ...ift-amount-reassociation-with-truncation-shl.ll | 8 +- .../InstCombine/shift-amount-reassociation.ll | 116 +++ ...n-bit-test-via-right-shifting-all-other-bits.ll | 206 +++- .../test/Transforms/SROA/reuse_lifetime_markers.ll | 69 ++ llvm/test/tools/llvm-cxxmap/remap.test | 2 +- .../tools/llvm-profdata/profile-symbol-list.test | 2 +- llvm/test/tools/llvm-profdata/roundtrip.test | 10 +- llvm/test/tools/llvm-profdata/sample-remap.test | 2 +- .../clang-tools-extra/clang-tidy/bugprone/BUILD.gn | 1 + .../gn/secondary/clang/tools/clang-format/BUILD.gn | 1 + llvm/utils/lit/lit/TestRunner.py | 224 +++- llvm/utils/lit/lit/builtin_commands/diff.py | 244 ----- .../tests/Inputs/shtest-shell/diff-encodings.txt | 15 - .../lit/tests/Inputs/shtest-shell/diff-error-0.txt | 3 + .../lit/tests/Inputs/shtest-shell/diff-in.bin | Bin 26 -> 0 bytes .../lit/tests/Inputs/shtest-shell/diff-in.dos | 3 - .../lit/tests/Inputs/shtest-shell/diff-in.unix | 3 - .../lit/tests/Inputs/shtest-shell/diff-in.utf16 | Bin 24 -> 0 bytes .../lit/tests/Inputs/shtest-shell/diff-in.utf8 | 3 - .../lit/tests/Inputs/shtest-shell/diff-pipes.txt | 25 - .../tests/Inputs/shtest-shell/diff-r-error-7.txt | 2 - .../tests/Inputs/shtest-shell/diff-r-error-8.txt | 2 - .../Inputs/shtest-shell/diff-strip-trailing-cr.txt | 10 - .../lit/tests/Inputs/shtest-shell/diff-unified.txt | 38 - llvm/utils/lit/tests/max-failures.py | 2 +- llvm/utils/lit/tests/shtest-shell.py | 339 +----- 89 files changed, 6360 insertions(+), 1423 deletions(-) create mode 100644 clang-tools-extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp create mode 100644 clang-tools-extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.h create mode 100644 clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-term [...] create mode 100644 clang-tools-extra/test/clang-tidy/Inputs/bugprone-not-null-term [...] create mode 100644 clang-tools-extra/test/clang-tidy/Inputs/bugprone-not-null-term [...] create mode 100644 clang-tools-extra/test/clang-tidy/bugprone-not-null-terminated- [...] create mode 100644 clang-tools-extra/test/clang-tidy/bugprone-not-null-terminated- [...] create mode 100644 clang-tools-extra/test/clang-tidy/bugprone-not-null-terminated- [...] create mode 100644 clang-tools-extra/test/clang-tidy/bugprone-not-null-terminated- [...] create mode 100644 clang-tools-extra/test/clang-tidy/bugprone-not-null-terminated- [...] create mode 100644 clang-tools-extra/test/clang-tidy/bugprone-not-null-terminated- [...] create mode 100644 clang-tools-extra/test/clang-tidy/bugprone-not-null-terminated- [...] create mode 100644 clang-tools-extra/test/clang-tidy/bugprone-not-null-terminated- [...] create mode 100644 llvm/test/Transforms/SROA/reuse_lifetime_markers.ll delete mode 100644 llvm/utils/lit/lit/builtin_commands/diff.py delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-encodings.txt create mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-error-0.txt delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.bin delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.dos delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.unix delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf16 delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf8 delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-pipes.txt delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-r-error-7.txt delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-r-error-8.txt delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-strip-trailing-cr.txt delete mode 100644 llvm/utils/lit/tests/Inputs/shtest-shell/diff-unified.txt