Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/Sema/CodeCompleteConsumer.h | ||
---|---|---|
784 | NIT: s/he/the |
Comment Actions
Iterator checks may crash in current state. Also, pointeeType may return invalid type of iterator store (T* instead of T)
clang/lib/Sema/SemaCodeComplete.cpp | ||
---|---|---|
5589 | RD is nullptr here - use RT->getDecl()->getDeclContext() instead | |
5646 | GNU STL use pointer to type in iterators, so need check is Element pointer-to-pointer: if (Element->isPointerType()) { if (const auto *PT = dyn_cast<PointerType>(Element)) { Element = PT->getPointeeType(); if (Element->isPointerType()) return "const auto*"; } } |
NIT: s/he/the