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
Event Timeline
include-fixer/IncludeFixerContext.cpp | ||
---|---|---|
46 | StringRef(FullyQualifiedName).startswith |
Comment Actions
Use StringRef::startwith.
include-fixer/IncludeFixerContext.cpp | ||
---|---|---|
46 | +1, more clear than std::string methods. |
StringRef(FullyQualifiedName).startswith