[include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.
authorHaojian Wu <hokein@google.com>
Thu, 14 Jul 2016 09:39:12 +0000 (09:39 +0000)
committerHaojian Wu <hokein@google.com>
Thu, 14 Jul 2016 09:39:12 +0000 (09:39 +0000)
commit0c05e2e4b6620f7cbb9e1b031c82287fafd742ac
tree06badf325a2a5e9504d0cf7c8afb87b924cae088
parentb0304114146ef3653c15fcbe7a0a43c9d66488d3
[include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.

Summary:
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.

Reviewers: bkramer

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D22343

llvm-svn: 275386
clang-tools-extra/include-fixer/IncludeFixerContext.cpp
clang-tools-extra/unittests/include-fixer/IncludeFixerTest.cpp