diff options
author | Fangrui Song <maskray@google.com> | 2018-09-25 08:07:42 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-09-25 08:07:42 +0000 |
commit | b5305be6994f294288b6318832eb67d6d5bc32c9 (patch) | |
tree | bc9d21b15509d630611dd30d389616e5ffc62f3f | |
parent | 037720ba4fe3c0bffbde4fb94ca8e054833df027 (diff) | |
download | bcm5719-llvm-b5305be6994f294288b6318832eb67d6d5bc32c9.tar.gz bcm5719-llvm-b5305be6994f294288b6318832eb67d6d5bc32c9.zip |
Annotate LookupResult::clear() as LLVM_ATTRIBUTE_REINITIALIZES to silence bugprone-use-after-move after rC342925
Reviewers: rsmith
Reviewed By: rsmith
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D52446
llvm-svn: 342950
-rw-r--r-- | clang/include/clang/Sema/Lookup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Sema/Lookup.h b/clang/include/clang/Sema/Lookup.h index e28b847f4ae..faf2343d39c 100644 --- a/clang/include/clang/Sema/Lookup.h +++ b/clang/include/clang/Sema/Lookup.h @@ -540,7 +540,7 @@ public: } /// Clears out any current state. - void clear() { + LLVM_ATTRIBUTE_REINITIALIZES void clear() { ResultKind = NotFound; Decls.clear(); if (Paths) deletePaths(Paths); |