Home
last modified time | relevance | path

Searched refs:arrays (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/llvm-project/clang-tools-extra/docs/clang-tidy/checks/modernize/
H A Davoid-c-arrays.rst1 .. 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 Davoid-c-arrays.rst1 .. 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 Dpro-bounds-constant-array-index.rst6 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 Dpro-bounds-array-to-pointer-decay.rst8 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 Davoid-c-arrays.rst1 .. 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 Dfstack-arrays.md1 # 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 Dnullability-consistency-arrays.mm2 …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 Dvla-ext-diag.cpp26 … 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 Dexceptions.cpp282 … 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 Dssp-data-layout.ll5 ; 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 Dssp-data-layout.ll5 ; 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 Darrays-of-scalable-vectors.mlir5 /// 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 DREADME10 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 D2001-02-06-TypeNotationDebateResp2.txt9 > 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 D2001-02-06-TypeNotationDebateResp1.txt38 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 Dinvariant_load_canonicalize_array_baseptrs_5.ll5 ; 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 Dp2-0x.cpp39 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 DCodeGenOptions.def33 CODEGENOPT(StackArrays, 1, 0) ///< -fstack-arrays (enable the stack-arrays pass)
/llvm-project/libcxx/test/std/library/description/conventions/customization.point.object/
H A Dcpo.compile.pass.cpp44 int arrays[10][10]; variable
92 static_assert(test(std::views::join, arrays));
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dstrncmp-6.ll4 ; 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 Dmemcmp-6.ll4 ; 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 Dmemcmp-5.ll4 ; 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 Dmemcmp-4.ll15 ; 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 Dp10.cpp141 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 Dllvm.used-invalid-type2.ll4 ; CHECK: Only global arrays can have appending linkage!

12345678910>>...14