MaskRay updated this revision to Diff 166806.
MaskRay retitled this revision from "Remove Found.clear() to silent 
bugprone-use-after-move after rC342925" to "Annotate LookupResult::clear() as 
LLVM_ATTRIBUTE_REINITIALIZES to silence bugprone-use-after-move after rC342925".
MaskRay removed a reviewer: clang.
MaskRay added a comment.

Update title with arc diff --edit --verbatim


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);


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);
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to