/llvm-project/clang-tools-extra/docs/clang-tidy/checks/modernize/ |
H A D | avoid-c-arrays.rst | 1 .. title:: clang-tidy - modernize-avoid-c-arrays 3 modernize-avoid-c-arrays 6 `cppcoreguidelines-avoid-c-arrays` redirects here as an alias for this check. 8 `hicpp-avoid-c-arrays` redirects here as an alias for this check. 11 ``std::vector<>``. All types of C arrays are diagnosed. 21 int a[] = {1, 2}; // warning: do not declare C-style arrays, use 'std::array' instead 23 int b[1]; // warning: do not declare C-style arrays, use 'std::array' instead 26 int c[b[0]]; // warning: do not declare C VLA arrays, use 'std::vector' instead 31 T d[Size]; // warning: do not declare C-style arrays, use 'std::array' instead 33 int e[1]; // warning: do not declare C-style arrays, us [all...] |
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/ |
H A D | avoid-c-arrays.rst | 1 .. title:: clang-tidy - cppcoreguidelines-avoid-c-arrays 3 :http-equiv=refresh: 5;URL=../modernize/avoid-c-arrays.html 5 cppcoreguidelines-avoid-c-arrays 8 The cppcoreguidelines-avoid-c-arrays check is an alias, please see 9 :doc:`modernize-avoid-c-arrays <../modernize/avoid-c-arrays>`
|
H A D | pro-bounds-constant-array-index.rst | 6 This check flags all array subscript expressions on static arrays and 7 ``std::arrays`` that either do not have a constant integer expression index or 9 arrays, see the `-Warray-bounds` Clang diagnostic.
|
H A D | pro-bounds-array-to-pointer-decay.rst | 8 Pointers should not be used as arrays. ``span<T>`` is a bounds-checked, safe 9 alternative to using pointers to access arrays.
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/hicpp/ |
H A D | avoid-c-arrays.rst | 1 .. title:: clang-tidy - hicpp-avoid-c-arrays 3 :http-equiv=refresh: 5;URL=../modernize/avoid-c-arrays.html 5 hicpp-avoid-c-arrays 8 The hicpp-avoid-c-arrays check is an alias, please see 9 :doc:`modernize-avoid-c-arrays <../modernize/avoid-c-arrays>`
|
/llvm-project/flang/docs/ |
H A D | fstack-arrays.md | 1 # Stack arrays pass 3 In gfortran, `-fstack-arrays` will cause all local arrays, including those of 7 Flang already allocates all local arrays on the stack (the 9 default it will not). But there are some cases where temporary arrays are 10 created on the heap by Flang. Moving these temporary arrays is the goal here. 18 Another approach would be to modify each place in which arrays are allocated on 34 to lowering code do not need to be made to support the stack arrays option. The 48 Flang allocates most arrays on the stack by default, but there are a few cases 49 where temporary arrays are allocated on the heap: 81 The last two of these cases are **not** covered by the current stack arrays pass [all …]
|
/llvm-project/clang/test/SemaObjCXX/ |
H A D | nullability-consistency-arrays.mm | 2 …lity-inferred-on-nested-type %s -D ARRAYS_CHECKED=0 -Wno-nullability-completeness-on-arrays -verify 5 …n-nested-type -x objective-c %s -D ARRAYS_CHECKED=0 -Wno-nullability-completeness-on-arrays -verify 8 #include "nullability-consistency-arrays.h"
|
/llvm-project/clang/test/SemaCXX/ |
H A D | vla-ext-diag.cpp | 26 … cxx98-warning {{variable length arrays in C++ are a Clang extension}} \ in old_style_static_assert() 29 … cxx98-warning {{variable length arrays in C++ are a Clang extension}} \ in old_style_static_assert() 35 … cxx98-warning {{variable length arrays in C++ are a Clang extension}} \ in old_style_static_assert()
|
H A D | exceptions.cpp | 282 … expected-warning {{variable length arrays in C++ are a Clang extension}} \ in test1() 290 … expected-warning {{variable length arrays in C++ are a Clang extension}} \ in test2()
|
/llvm-project/llvm/test/CodeGen/ARM/ |
H A D | ssp-data-layout.ll | 5 ; ssp-buffer-size) arrays and structures containing such arrays are 7 ; arrays/structures-with-arrays are closest, followed by small (< ssp-buffer-size) 8 ; arrays/structures-with-arrays, and then addr-taken variables. 24 ; 180 large_char . Group 1, nested arrays, arrays >= ssp-buffer-size 147 ; 144 large_nonchar . Group 1, nested arrays, 148 ; 136 large_char . arrays >= ssp-buffer-size 151 ; 84+8 small_non_char | Group 2, nested arrays, 152 ; 90 small_char | arrays < ssp-buffer-size
|
/llvm-project/llvm/test/CodeGen/X86/ |
H A D | ssp-data-layout.ll | 5 ; ssp-buffer-size) arrays and structures containing such arrays are 7 ; arrays/structures-with-arrays are closest, followed by small (< ssp-buffer-size) 8 ; arrays/structures-with-arrays, and then addr-taken variables. 31 ; -16 large_char . Group 1, nested arrays, arrays >= ssp-buffer-size 153 ; -48 large_nonchar . Group 1, nested arrays, 154 ; -56 large_char . arrays >= ssp-buffer-size 157 ; -100 small_non_char | Group 2, nested arrays, 158 ; -102 small_char | arrays < ssp-buffer-size
|
/llvm-project/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/ |
H A D | arrays-of-scalable-vectors.mlir | 5 /// This tests basic functionality of arrays of scalable vectors, which in MLIR 19 /// TODO: Support vector.print for arrays of scalable vectors. 41 /// TODO: Support vector.print for arrays of scalable vectors. 100 vector.print str "=> Print and read 2D arrays of scalable vectors:\n" 112 vector.print str "=> Reading and adding two 3D arrays of scalable vectors:\n"
|
/llvm-project/polly/ |
H A D | README | 10 propagation through arrays, remove dead loop iterations, optimize loops for 11 cache locality, optimize arrays, apply advanced automatic parallelization, drive
|
/llvm-project/llvm/docs/HistoricalNotes/ |
H A D | 2001-02-06-TypeNotationDebateResp2.txt | 9 > The arrays with size lists the dimensions and the type in a single list. 26 short term. Java arrays are always zero based. 43 I considered this approach for arrays in general (ie array of int/ array
|
H A D | 2001-02-06-TypeNotationDebateResp1.txt | 38 But pointers to member functions are nowhere near as common as arrays. And 43 make function pointers easier but makes arrays much more difficult seems 63 The arrays with size lists the dimensions and the type in a single list.
|
/llvm-project/polly/test/ScopInfo/ |
H A D | invariant_load_canonicalize_array_baseptrs_5.ll | 5 ; Verify that nested arrays with invariant base pointers are handled correctly. 6 ; Specifically, we currently do not canonicalize arrays where some accesses are 11 ; In this test case the arrays baseA1 and baseA2 could be canonicalized to a
|
/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.typedef/ |
H A D | p2-0x.cpp | 39 expected-warning {{variable length arrays in C++ are a Clang extension}} \ 51 expected-warning {{variable length arrays in C++ are a Clang extension}} \ in f()
|
/llvm-project/flang/include/flang/Frontend/ |
H A D | CodeGenOptions.def | 33 CODEGENOPT(StackArrays, 1, 0) ///< -fstack-arrays (enable the stack-arrays pass)
|
/llvm-project/libcxx/test/std/library/description/conventions/customization.point.object/ |
H A D | cpo.compile.pass.cpp | 44 int arrays[10][10]; variable 92 static_assert(test(std::views::join, arrays));
|
/llvm-project/llvm/test/Transforms/InstCombine/ |
H A D | strncmp-6.ll | 4 ; Exercise folding of strncmp calls with constant arrays including both 13 ; Exercise strncmp(A + C, B + C, 2) folding of small arrays that differ in 56 ; Exercise strncmp(A, B, N) folding of arrays that differ in a character
|
H A D | memcmp-6.ll | 4 ; Exercise folding of memcmp calls with constant arrays including both 13 ; Exercise memcmp(A + C, B + C, 2) folding of small arrays that differ in 56 ; Exercise memcmp(A, B, N) folding of arrays that differ in a character
|
H A D | memcmp-5.ll | 4 ; Exercise folding of memcmp calls with constant arrays and nonconstant 16 ; Exercise memcmp(A, B, N) folding of arrays with the same bytes. 100 ; Exercise memcmp(A, C, N) folding of arrays with the same leading bytes 171 ; Exercise memcmp(A, D, N) folding of arrays of different sizes and 219 ; Exercise memcmp(A, D, N) folding of arrays with the same bytes and
|
H A D | memcmp-4.ll | 15 ; Fold calls with a count in excess of the size of one of the arrays that 45 ; Fold even calls with excessive byte counts of arrays with matching bytes.
|
/llvm-project/clang/test/CXX/basic/basic.types/ |
H A D | p10.cpp | 141 expected-warning {{variable length arrays in C++ are a Clang extension}} \ in arb() 146 expected-warning {{variable length arrays in C++ are a Clang extension}} \
|
/llvm-project/llvm/test/Verifier/ |
H A D | llvm.used-invalid-type2.ll | 4 ; CHECK: Only global arrays can have appending linkage!
|