[PATCH] D52446: Annotate LookupResult::clear() as LLVM_ATTRIBUTE_REINITIALIZES to silence bugprone-use-after-move after rC342925
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 25 01:11:35 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC342950: Annotate LookupResult::clear() as LLVM_ATTRIBUTE_REINITIALIZES to silenceā¦ (authored by MaskRay, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D52446?vs=166806&id=166824#toc
Repository:
rC Clang
https://reviews.llvm.org/D52446
Files:
include/clang/Sema/Lookup.h
Index: include/clang/Sema/Lookup.h
===================================================================
--- include/clang/Sema/Lookup.h
+++ include/clang/Sema/Lookup.h
@@ -540,7 +540,7 @@
}
/// Clears out any current state.
- void clear() {
+ LLVM_ATTRIBUTE_REINITIALIZES void clear() {
ResultKind = NotFound;
Decls.clear();
if (Paths) deletePaths(Paths);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52446.166824.patch
Type: text/x-patch
Size: 380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180925/9794d7b8/attachment.bin>
More information about the cfe-commits
mailing list