Home
last modified time | relevance | path

Searched full:mutable (Results 1 – 25 of 1257) sorted by relevance

12345678910>>...51

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dfor-range-copy.cpp117 struct Mutable { struct
118 Mutable() {} in Mutable() function
119 Mutable(const Mutable &) = default;
120 Mutable(Mutable&&) = default;
121 Mutable(const Mutable &, const Mutable &) {} in Mutable() argument
126 Mutable& operator[](int I) { in operator []() argument
129 bool operator==(const Mutable &Other) const { in operator ==() argument
132 ~Mutable() {} in ~Mutable() argument
135 Mutable& operator<<(Mutable &Out, bool B) { in operator <<()
140 bool operator!=(const Mutable& M1, const Mutable& M2) { in operator !=()
[all …]
/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.stc/
H A Dp10.cpp7 mutable const int f0; // expected-error{{'mutable' and 'const' cannot be mixed}}
8 mutable T0 f1; // expected-error{{'mutable' and 'const' cannot be mixed}}
9 mutable int &f2; // expected-error{{'mutable' cannot be applied to references}}
10 mutable T1 f3; // expected-error{{'mutable' cannot be applied to references}}
11 mutable struct s1 {}; // expected-error{{'mutable' can only be applied to member variables}}
12 mutable void im0(); // expected-error{{'mutable' cannot be applied to functions}}
/llvm-project/lldb/test/API/functionalities/data-formatter/nssetsynth/
H A Dmain.m9 NSMutableSet* mutable = [NSMutableSet setWithCapacity:5];
10 [mutable addObject:@1];
11 [mutable addObject:@2];
12 [mutable addObject:@3];
13 [mutable addObject:@4];
14 [mutable addObject:@5];
15 [mutable addObject:[NSURL URLWithString:@"www.apple.com"]];
16 [mutable addObject:@[@1,@2,@3]];
17 [mutable unionSet:set];
18 [mutable removeAllObjects]; // Set break point at this line.
[all …]
H A DTestNSSetSynthetic.py65 self.expect("frame variable mutable", substrs=["9 elements"])
81 "frame variable mutable --ptr-depth 1 -d run -T",
94 self.expect("frame variable mutable", substrs=["0 elements"])
97 self.expect("frame variable mutable", substrs=["4 elements"])
99 "frame variable mutable --ptr-depth 1 -d run -T",
114 self.expect("frame variable mutable", substrs=["4 elements"])
116 "frame variable mutable --ptr-depth 1 -d run -T",
/llvm-project/clang/test/Parser/
H A Dcxx1z-constexpr-lambdas.cpp14 auto XL1 = []() mutable //
15 mutable // expected-error{{cannot appear multiple times}}
16 mutable {}; // expected-error{{cannot appear multiple times}} in __anon2b446f440102()
19 auto XL2 = [] () constexpr mutable constexpr { }; //expected-error{{cannot appear multiple times}} in __anon2b446f440202()
20 auto L = []() mutable constexpr { }; in __anon2b446f440302()
22 auto L4 = []() constexpr mutable { }; in __anon2b446f440502()
24 mutable
26 mutable //expected-error{{cannot appear multiple times}}
27 mutable //expected-error{{cannot appear multiple times}}
33 auto L = []() mutable constexpr {return 0; }; //expected-warning{{is a C++17 extension}} in __anon2b446f440702()
[all …]
H A Dcxx2b-lambdas.cpp10 auto LL2 = []() mutable {}; in __anon95e8947a0302()
18 auto L1 = [] mutable {}; in __anon95e8947a0502()
21 auto L3 = [] constexpr mutable {}; // cxx11-error {{return type 'void' is not a literal type}}
22 auto L4 = [] mutable constexpr {}; // cxx11-error {{return type 'void' is not a literal type}}
23 auto L5 = [] constexpr mutable noexcept {}; // cxx11-error {{return type 'void' is not a literal ty…
25 auto L6 = [s = 1] mutable {}; in __anon95e8947a0602()
27 auto L7 = [s = 1] constexpr mutable noexcept {}; // cxx11-error {{return type 'void' is not a liter…
44 auto XL0 = [] mutable constexpr mutable {}; // expected-error{{cannot appear multiple times}} cx…
45 auto XL1 = [] constexpr mutable constexpr {}; // expected-error{{cannot appear multiple times}} cx…
46 auto XL2 = []) constexpr mutable constexpr {}; // expected-error{{expected body of lambda expressio…
[all …]
H A Dcxx0x-lambda-expressions.cpp28 [&] (int) mutable -> void {}; in f()
37 [] mutable -> int { return 0; }; // cxx23ext-warning {{is a C++23 extension}} in f()
84 …[n(0)] () mutable -> int { return ++n; }; // cxx14ext-warning {{initialized lambda captures are… in init_capture()
87 …= 0] { return ++n; }; // expected-error {{captured by copy in a non-mutable}} in init_capture()
103 mutable {}; // expected-error {{expected body of lambda expression}} in attributes()
107 []() mutable [[]] -> void {}; in attributes()
109 []() mutable noexcept [[]] -> void {}; in attributes()
113 // before the mutable specifier instead of after (unlike C++11). in attributes()
114 []() __attribute__((noreturn)) mutable { while(1); }; in attributes()
115 []() mutable in attributes()
[all …]
/llvm-project/clang/test/SemaCXX/
H A Dlambda-capture-type-deduction.cpp17 decltype([x = 1] mutable -> decltype((x)) { return x; }())>); in f()
23 decltype([=] mutable -> decltype((y)) { return y; }())>); in f()
29 decltype([=] mutable -> decltype((y)) { return y; }())>); in f()
42 static_assert(noexcept([x = 1] mutable noexcept(is_same<int &, decltype((x))>) {}())); in test_noexcept()
44 static_assert(noexcept([y] mutable noexcept(is_same<int &, decltype((y))>) {}())); in test_noexcept()
46 static_assert(noexcept([=] mutable noexcept(is_same<int &, decltype((y))>) {}())); in test_noexcept()
48 static_assert(noexcept([&] mutable noexcept(is_same<int &, decltype((y))>) {}())); in test_noexcept()
58 [x = 1]() mutable requires is_same<int &, decltype((x))> {} in test_requires()
62 [x]() mutable requires is_same<int &, decltype((x))> {} in test_requires()
66 [=]() mutable require in test_requires()
[all...]
H A Dclass.cpp88 mutable int mi;
89 mutable int &mir; // expected-error {{'mutable' cannot be applied to references}}
90 mutable void mfn(); // expected-error {{'mutable' cannot be applied to functions}}
91 mutable const int mci; // expected-error {{'mutable' and 'const' cannot be mixed}} in f()
111 mutable int j; in f()
121 // Play with mutable a bit more, to make sure it doesn't crash anything. in ogfn()
122 mutable in in ogfn()
[all...]
H A Dcxx1z-lambda-star-this.cpp24 (void)[*this]() mutable { ++x; }; in foo()
71 const auto &L = [*this](auto a) mutable { //expected-error{{call to deleted}} in foo()
95 auto L = [*this]() mutable { in foo()
107 auto M = [this]() mutable { in foo()
113 auto M2 = [*this]() mutable { in foo()
123 auto M = [this](auto b) mutable { in foo()
131 auto M2 = [*this](auto a) mutable { in foo()
138 return [=](auto a) mutable { M(a)(a); M2(a)(a); }; in foo()
144 auto L2 = [this]() mutable { in foo()
148 auto GL = [*this](auto a) mutable { in foo()
[all …]
/llvm-project/clang/test/CXX/expr/expr.const/
H A Dp6-2a.cpp13 struct Mutable { struct
14 mutable int member = 1; // expected-note {{declared here}}
15 constexpr ~Mutable() { member = member + 1; } // expected-note {{read of mutable member}} in ~Mutable() argument
17 constexpr Mutable mut_member; // expected-error {{must have constant destruction}} expected-note {{…
20 mutable int member = 1; // expected-note {{declared here}}
21 constexpr ~MutableStore() { member = 2; } // expected-note {{assignment to mutable member}} in ~MutableStore()
30 mutable HasConstMember hcm; // expected-note {{here}}
32 int q = hcm.n; // expected-note {{read of mutable}} in ~MutableConst()
/llvm-project/lld/test/wasm/
H A Dpic-static.ll62 ; CHECK-NEXT: Mutable: true
70 ; CHECK-NEXT: Mutable: false
78 ; CHECK-NEXT: Mutable: false
86 ; CHECK-NEXT: Mutable: false
94 ; CHECK-NEXT: Mutable: false
102 ; CHECK-NEXT: Mutable: false
110 ; CHECK-NEXT: Mutable: false
118 ; CHECK-NEXT: Mutable: false
H A Dmutable-global-exports.s3 # Should fail without mutable globals feature enabled.
7 # RUN: wasm-ld --extra-features=mutable-globals --export=foo_global %t.o -o %t.wasm
11 # RUN: wasm-ld --extra-features=mutable-globals --export=__stack_pointer %t.o -o %t.wasm
14 # RUN: wasm-ld --extra-features=mutable-globals --export-all %t.o -o %t.wasm
35 # CHECK-ERR: mutable global exported but 'mutable-globals' feature not present in inputs: `foo_glob…
111 # CHECK-ALL-NEXT: Name: mutable-globals
H A Dglobal-base.test19 CHECK-1024-NEXT: Mutable: true
25 CHECK-1024-NEXT: Mutable: false
31 CHECK-1024-NEXT: Mutable: false
50 CHECK-16777216-NEXT: Mutable: true
56 CHECK-16777216-NEXT: Mutable: false
62 CHECK-16777216-NEXT: Mutable: false
/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DSymbolCache.h46 mutable std::vector<std::unique_ptr<NativeRawSymbol>> Cache;
50 mutable DenseMap<codeview::TypeIndex, SymIndexId> TypeIndexToSymbolId;
55 mutable DenseMap<std::pair<codeview::TypeIndex, uint32_t>, SymIndexId>
60 mutable std::vector<SymIndexId> Compilands;
63 mutable std::vector<std::unique_ptr<NativeSourceFile>> SourceFiles;
66 mutable DenseMap<uint32_t, SymIndexId> FileNameOffsetToId;
69 mutable DenseMap<uint32_t, SymIndexId> GlobalOffsetToSymbolId;
72 mutable DenseMap<std::pair<uint32_t, uint32_t>, SymIndexId> AddressToSymbolId;
74 mutable DenseMap<std::pair<uint32_t, uint32_t>, SymIndexId>
78 mutable DenseMap<std::pair<uint16_t, uint32_t>, SymIndexId>
[all …]
/llvm-project/clang/test/CodeGenCXX/
H A Dsections.cpp5 struct Mutable { struct
6 mutable int i = 3;
8 extern const Mutable mutable_default_section; argument
9 const Mutable mutable_default_section;
20 extern const Mutable mutable_custom_section;
21Mutable mutable_custom_section; // expected-warning {{`#pragma const_seg` for section ".my_const" …
108 //CHECK: @mutable_default_section = dso_local global %struct.Mutable { i32 3 }, align 4{{$}}
112 //CHECK: @mutable_custom_section = dso_local global %struct.Mutable { i32 3 }, section ".data", ali…
/llvm-project/clang/include/clang/AST/
H A DNSAPI.h240 mutable IdentifierInfo *ClassIds[NumClassIds];
242 mutable Selector NSStringSelectors[NumNSStringMethods];
245 mutable Selector NSArraySelectors[NumNSArrayMethods];
248 mutable Selector NSDictionarySelectors[NumNSDictionaryMethods];
251 mutable Selector NSSetSelectors[NumNSSetMethods];
254 mutable Selector NSNumberClassSelectors[NumNSNumberLiteralMethods];
255 mutable Selector NSNumberInstanceSelectors[NumNSNumberLiteralMethods];
257 mutable Selector objectForKeyedSubscriptSel, objectAtIndexedSubscriptSel,
261 mutable IdentifierInfo *BOOLId, *NSIntegerId, *NSUIntegerId;
262 mutable IdentifierInfo *NSASCIIStringEncodingId, *NSUTF8StringEncodingId;
H A DASTContext.h191 mutable SmallVector<Type *, 0> Types;
192 mutable llvm::FoldingSet<ExtQuals> ExtQualNodes;
193 mutable llvm::FoldingSet<ComplexType> ComplexTypes;
194 mutable llvm::FoldingSet<PointerType> PointerTypes{GeneralTypesLog2InitSize};
195 mutable llvm::FoldingSet<AdjustedType> AdjustedTypes;
196 mutable llvm::FoldingSet<BlockPointerType> BlockPointerTypes;
197 mutable llvm::FoldingSet<LValueReferenceType> LValueReferenceTypes;
198 mutable llvm::FoldingSet<RValueReferenceType> RValueReferenceTypes;
199 mutable llvm::FoldingSet<MemberPointerType> MemberPointerTypes;
200 mutable llv
[all...]
/llvm-project/llvm/utils/TableGen/Common/
H A DCodeGenTarget.h61 mutable DenseMap<const Record *, std::unique_ptr<CodeGenInstruction>>
63 mutable std::unique_ptr<CodeGenRegBank> RegBank;
64 mutable ArrayRef<const Record *> RegAltNameIndices;
65 mutable SmallVector<ValueTypeByHwMode, 8> LegalValueTypes;
68 mutable bool HasVariableLengthEncodings = false;
73 mutable std::unique_ptr<CodeGenSchedModels> SchedModels;
75 mutable StringRef InstNamespace;
76 mutable std::vector<const CodeGenInstruction *> InstrsByEnum;
77 mutable CodeGenIntrinsicMap Intrinsics;
79 mutable unsigne
[all...]
/llvm-project/clang/test/Analysis/Checkers/WebKit/
H A Dref-cntbl-base-virtual-dtor-templates.cpp43 mutable unsigned count;
95 mutable unsigned refCount { 0 };
178 mutable unsigned refCount { 0 };
204 mutable unsigned refCount { 0 };
216 mutable unsigned refCount { 0 };
228 mutable unsigned refCount { 0 };
283 mutable unsigned refCount { 0 };
318 mutable unsigned refCount { 0 };
347 mutable unsigned refCount { 0 };
383 mutable unsigned refCount { 0 };
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DBasicObjCFoundationChecks.cpp103 mutable std::unique_ptr<APIMisuse> BT;
105 mutable llvm::SmallDenseMap<Selector, unsigned, 16> StringSelectors;
106 mutable Selector ArrayWithObjectSel;
107 mutable Selector AddObjectSel;
108 mutable Selector InsertObjectAtIndexSel;
109 mutable Selector ReplaceObjectAtIndexWithObjectSel;
110 mutable Selector SetObjectAtIndexedSubscriptSel;
111 mutable Selector ArrayByAddingObjectSel;
112 mutable Selector DictionaryWithObjectForKeySel;
113 mutable Selecto
[all...]
/llvm-project/clang-tools-extra/clangd/support/
H A DFileCache.h38 /// - add mutable storage for the cached parsed data
67 // Members are mutable so read() can present a const interface.
69 mutable std::mutex Mu;
71 mutable std::chrono::steady_clock::time_point ValidTime;
73 mutable llvm::sys::TimePoint<> ModifiedTime;
74 mutable uint64_t Size;
/llvm-project/clang/test/Analysis/
H A DObjCPropertiesSyntaxChecks.m11 @property(copy) NSMutableString *mutableStr; // expected-warning{{Property of mutable type 'NSMutab…
12 @property(copy) NSMutableString *mutableExplicitStr; // expected-warning{{Property of mutable type …
22 @property(copy) NSMutableString *mutableStrInCategory; // expected-warning{{Property of mutable typ…
23 …mutableReadonlyStrOverriddenInCategory; // expected-warning{{Property of mutable type 'NSMutableSt…
51 …g *mutableReadonlyStrOverriddenInChild; // expected-warning{{Property of mutable type 'NSMutableSt…
/llvm-project/llvm/test/ObjectYAML/wasm/
H A Dextended_const_expressions.yaml10 Mutable: false
18 Mutable: false
32 # CHECK: Mutable: false
38 # CHECK: Mutable: false
/llvm-project/clang-tools-extra/clangd/
H A DClangdServer.cpp92 ASTCtx(std::move(ASTCtx)), PI(std::move(PI))]() mutable { in onPreambleAST()
119 Ctx(Context::current().clone())]() mutable { in indexStdlib()
430 this](llvm::Expected<InputsAndPreamble> IP) mutable { in codeComplete()
492 this](llvm::Expected<InputsAndPreamble> IP) mutable { in signatureHelp()
537 CB = std::move(CB), this]() mutable { in formatFile()
565 CB = std::move(CB), this]() mutable { in formatOnType()
582 RenameOpts](llvm::Expected<InputsAndAST> InpAST) mutable { in prepareRename()
607 this](llvm::Expected<InputsAndAST> InpAST) mutable { in rename()
684 Expected<InputsAndAST> InpAST) mutable { in codeAction()
753 this](Expected<InputsAndAST> InpAST) mutable { in applyTweak()
[all...]

12345678910>>...51