This case is particularly important for clangd, as it is triggered after
inserting the snippet for variadic functions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 34921 Build 34920: arc lint + arc unit
Event Timeline
clang/lib/Sema/SemaTemplateVariadic.cpp | ||
---|---|---|
622 | why not directly return CorrectDelayedTyposInExpr(Pattern); ? |
clang/lib/Sema/SemaTemplateVariadic.cpp | ||
---|---|---|
622 | Because the error isn't that Pattern is invalid per se (in a way that CorrectDelayedTyposInExpr can see), but rather that there's no pack to expand. So even if CorrectDelayedTyposInExpr returns something valid, we still want to return ExprError(). We call it for its side-effects of flushing typos and emitting diagnostics. |
why not directly return CorrectDelayedTyposInExpr(Pattern); ?