Lines Matching full:only
1 // RUN: %clang_cc1 -Wread-only-types %s -verify -fsyntax-only
2 // RUN: %clang_cc1 -std=c++2a -Wread-only-types %s -verify -fsyntax-only
3 // RUN: %clang_cc1 -std=c++17 -Wread-only-types %s -verify -fsyntax-only
8 A a1; // expected-warning {{object of type 'A' cannot be placed in read-only memory}}
9 // expected-note@#A_DECL {{type was declared read-only here}}
11 A a3[20]; // expected-warning {{object of type 'A' cannot be placed in read-only memory}}
12 // expected-note@#A_DECL {{type was declared read-only here}}
20 B b1; // expected-warning {{object of type 'B' cannot be placed in read-only memory}}
21 // expected-note@#B_DECL {{type was declared read-only here}}
24 B b4[5]; // expected-warning {{object of type 'B' cannot be placed in read-only memory}}
25 // expected-note@#B_DECL {{type was declared read-only here}}
26 B b5[5][5]; // expected-warning {{object of type 'B' cannot be placed in read-only memory}}
27 // expected-note@#B_DECL {{type was declared read-only here}}
28 B b10[5][5][5]; // expected-warning {{object of type 'B' cannot be placed in read-only memory}}
29 // expected-note@#B_DECL {{type was declared read-only here}}
33 static B b7;// expected-warning {{object of type 'B' cannot be placed in read-only memory}} in method1()
34 // expected-note@#B_DECL {{type was declared read-only here}} in method1()
40 …attribute__((enforce_read_only_placement)) C; // expected-note {{type was declared read-only here}}
44 C c1; // expected-warning {{object of type 'C' cannot be placed in read-only memory}}
63 // checked for read only placement because `E` is not marked as `C` is.
69 // read only placement
95 // Cases where the const qualification doesn't ensure read-only memory placement
100 mutable int x; // FIXME: warn the user type `G` won't be placed in the read only program memory
104 // won't be placed in the read only program memory
108 // placed in the read only program memory
116 L(int val) { // FIXME: warn the user type `L` won't be placed in the read only program memory in L()
130 // in the read only program memory
155 C *c2 = new C; // FIXME: warn the user this instance of 'C' won't be placed in the read only progra…
157 void func1(C c); // FIXME: warn the user the instance of 'C' won't be placed in the read only progr…
160 // only program memory
162 C func3(); // FIXME: warn the user the instance of 'C' won't be placed in the read only program mem…
165 C c; // FIXME: warn the user the instance of 'C' won't be placed in the read only program memory in func4()