llvm-project/clang-tools-extra/unittests
Eric Liu 4df070a5e3 [clangd] Handle unresolved scope specifier when fixing includes.
Summary:
In the following examples, "clangd" is unresolved, and the fixer will try to fix
include for `clang::clangd`; however, clang::clangd::X is usually intended. So
when handling a qualifier that is unresolved, we change the unresolved name and
scopes so that the fixer will fix "clang::clangd::X" in the following example.
```
  namespace clang {
  	clangd::X
	~~~~~~
  }
  // or
  clang::clangd::X
         ~~~~~~
```

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, jdoerfert, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D58185

llvm-svn: 354330
2019-02-19 14:32:22 +00:00
..
change-namespace Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-apply-replacements Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-doc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-move Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-query Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-tidy Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clangd [clangd] Handle unresolved scope specifier when fixing includes. 2019-02-19 14:32:22 +00:00
include/common Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
include-fixer Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [clang-doc] Add unit tests for serialization 2018-10-16 23:06:42 +00:00