The judgement that checks whether the fully-qualified name has scoped qualifiers
prefix is incorrect. Should always check whether the first matched postion is the
beginning position.
Details
Details
- Reviewers
bkramer - Commits
- rG0c05e2e4b662: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.
rCTE275386: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.
rL275386: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include-fixer/IncludeFixerContext.cpp | ||
---|---|---|
46 ↗ | (On Diff #63940) | StringRef(FullyQualifiedName).startswith |
Comment Actions
Use StringRef::startwith.
include-fixer/IncludeFixerContext.cpp | ||
---|---|---|
46 ↗ | (On Diff #63940) | +1, more clear than std::string methods. |