llvm-project/clang/test
Chris Hamilton d9ee935679 [Sema] Address-space sensitive check for unbounded arrays (v2)
Check applied to unbounded (incomplete) arrays and pointers to spot
cases where the computed address is beyond the largest possible
addressable extent of the array, based on the address space in which the
array is delcared, or which the pointer refers to.

Check helps to avoid cases of nonsense pointer math and array indexing
which could lead to linker failures or runtime exceptions.  Of
particular interest when building for embedded systems with small
address spaces.

This is version 2 of this patch -- version 1 had some testing issues
due to a sign error in existing code.  That error is corrected and
lit test for this chagne is extended to verify the fix.

Originally reviewed/accepted by: aaron.ballman
Original revision: https://reviews.llvm.org/D86796

Reviewed By: ebevhan

Differential Revision: https://reviews.llvm.org/D88174
2020-09-29 16:14:48 +02:00
..
ARCMT
AST Revert "[OpenMP][FIX] Verify compatible types for declare variant calls" 2020-09-29 00:37:11 -05:00
ASTMerge
Analysis [analyzer][StdLibraryFunctionsChecker] Fix getline/getdelim signatures 2020-09-23 10:48:14 +02:00
CXX Canonicalize declaration pointers when forming APValues. 2020-09-27 19:05:26 -07:00
ClangScanDeps
CodeCompletion [clang] Make signature help work with dependent args 2020-08-17 10:06:36 +02:00
CodeGen Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
CodeGenCUDA Recommit "[HIP] Change default --gpu-max-threads-per-block value to 1024" 2020-09-28 22:43:17 -04:00
CodeGenCXX Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
CodeGenCoroutines Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
CodeGenHIP
CodeGenObjC Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
CodeGenObjCXX Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
CodeGenOpenCL Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
CodeGenOpenCLCXX Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
CodeGenSYCL [SYCL] Assume SYCL device functions are convergent 2020-09-29 15:23:50 +03:00
Coverage
CoverageMapping [Coverage] Add empty line regions to SkippedRegions 2020-09-21 12:42:53 -07:00
Driver [HIP] Return non-zero value for invalid target ID 2020-09-28 23:07:39 -04:00
FixIt
Format [clang-format] Add a test showing the current config file list parsing 2020-09-04 16:57:46 +01:00
Frontend Add REQUIRES to embed-bitcode-noopt.ll 2020-09-23 10:13:09 -07:00
Headers [OpenMP] Support `std::complex` math functions in target regions 2020-09-16 13:37:10 -05:00
Import [clang] Rework how and when APValues are dumped 2020-07-06 22:03:08 +01:00
Index [clang] Traverse init-captures while indexing 2020-09-22 02:32:09 -04:00
Integration
InterfaceStubs [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
Layout [AIX] Implement AIX special alignment rule about double/long double 2020-07-27 15:13:03 -04:00
Lexer [SystemZ][z/OS] Set default wchar_t type for zOS 2020-09-22 08:03:03 -04:00
Misc [clang] Update warning-wall.c test 2020-09-28 17:19:51 -07:00
Modules Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
OpenMP Canonicalize declaration pointers when forming APValues. 2020-09-27 19:05:26 -07:00
PCH Set InvalidDecl directly when deserializing a Decl 2020-09-05 14:26:43 +02:00
Parser PR47176: Don't read from an inactive union member if a friend function 2020-09-24 19:02:27 -07:00
ParserSYCL
Preprocessor [SystemZ][z/OS] Set default wchar_t type for zOS 2020-09-22 08:03:03 -04:00
Profile [PGO] Include the mem ops into the function hash. 2020-07-30 09:26:20 -07:00
Refactor
Rewriter
Sema [Sema] Address-space sensitive check for unbounded arrays (v2) 2020-09-29 16:14:48 +02:00
SemaCUDA Revert "Recommit "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions"" 2020-09-24 11:16:54 -07:00
SemaCXX [Sema] Address-space sensitive check for unbounded arrays (v2) 2020-09-29 16:14:48 +02:00
SemaObjC Sema: add support for `__attribute__((__swift_private__))` 2020-09-25 22:33:53 +00:00
SemaObjCXX [Sema] Handle objc_super special lookup when checking builtin compatibility 2020-09-18 20:51:55 +03:00
SemaOpenCL [OpenCL] Add global_device and global_host address spaces 2020-07-29 17:24:53 +03:00
SemaOpenCLCXX [OpenCL] Fixed missing address space for templated copy constructor. 2020-07-27 15:18:49 +01:00
SemaSYCL
SemaTemplate [c++20] For P1907R1: Add checking for structural types for non-type 2020-09-20 20:20:52 -07:00
TableGen Revert "Recommit "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions"" 2020-09-24 11:16:54 -07:00
Templight
Tooling [clang] Rework how and when APValues are dumped 2020-07-06 22:03:08 +01:00
Unit
VFS
clang-rename
utils/update_cc_test_checks [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
.clang-format [clang] Partially revert "Disable a few formatting options for test/" 2020-07-21 14:53:37 +01:00
CMakeLists.txt Revert "Re-Re-land: [CodeView] Add full repro to LF_BUILDINFO record" 2020-08-17 15:49:18 -04:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [Coverage] Add empty line regions to SkippedRegions 2020-09-21 12:42:53 -07:00
lit.site.cfg.py.in [CMake] Simplify CMake handling for zlib 2020-08-11 20:22:11 -07:00
make_test_dirs.pl