[PATCH] D137263: add boundary check for ASTUnresolvedSet::erase
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 6 10:42:03 PST 2022
MaskRay accepted this revision.
MaskRay added a comment.
Thanks!
================
Comment at: clang/include/clang/AST/ASTUnresolvedSet.h:73
+ void erase(unsigned I) {
+ if (I == (Decls.size() - 1))
+ Decls.pop_back();
----------------
`if (I == Decls.size() - 1)`
================
Comment at: clang/test/SemaCXX/using-decl-templates.cpp:107
+ template <typename T>
+ struct A
+ {
----------------
The llvm style prefers `{` at the end of the previous line. Tests usually don't need to follow the convention but the previous code in this test file follows the convention.
================
Comment at: clang/test/SemaCXX/using-decl-templates.cpp:123
+
+ int
+ foo ()
----------------
`int foo() {`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137263/new/
https://reviews.llvm.org/D137263
More information about the cfe-commits
mailing list