[all-commits] [llvm/llvm-project] 7d85f7: Fix the DeclContextLookupResult::iterator non-copy...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Tue Nov 10 11:24:01 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7d85f732b13a3434bbb6a9054b8ede0e903961da
https://github.com/llvm/llvm-project/commit/7d85f732b13a3434bbb6a9054b8ede0e903961da
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2020-11-10 (Tue, 10 Nov 2020)
Changed paths:
M clang/include/clang/AST/DeclBase.h
Log Message:
-----------
Fix the DeclContextLookupResult::iterator non-copyable.
The value_type is a const pointer, which makes the iteator non-copyable.
Before the patch, the normal usage like below was illegal:
```
auto It = lookupresult.begin();
...
It = lookupresult.end(); // the copy is not allowed.
```
Differential Revision: https://reviews.llvm.org/D91158
More information about the All-commits
mailing list