Details
Details
- Reviewers
sammccall - Commits
- rG28c2bdf18f50: [AST] Record SourceLocation for TypoExpr.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/AST/Expr.h | ||
---|---|---|
6159–6160 | can we have Start != End in practice? Looking at DeclarationNameInfo::getEndLocPrivate(), it seems like this only happens in operators, literal-operators, conversions, constructors/destructors. If these don't actually support typo correction maybe we should just use one location? |
clang/include/clang/AST/Expr.h | ||
---|---|---|
6159–6160 | ah, yes, I missed this. typo correction only supports identifiers, so Start and End are always the same. |
can we have Start != End in practice?
Looking at DeclarationNameInfo::getEndLocPrivate(), it seems like this only happens in operators, literal-operators, conversions, constructors/destructors.
If these don't actually support typo correction maybe we should just use one location?