llvm-project/clang-tools-extra/unittests
Haojian Wu adedac68dc [include-fixer] Correct nested class search for identifiers with scoped information
Summary:
include-fixer will firstly try to use scoped namespace context information to
search identifier. However, in some cases, it's unsafe to do nested class
search, because it might treat the identifier as a nested class of scoped
namespace.

Given the following code, and the symbol database only has two classes: "foo" and
"b::Bar".

    namespace foo { Bar t; }

Before getting fixing, include-fixer will never search "Bar" symbol.
Because it firstly tries to search "foo::Bar", there is no "Bar" in foo namespace,
then it finds "foo" in database finally. So it treats "Bar" is a nested class
of "foo".

Reviewers: bkramer

Subscribers: cfe-commits

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

llvm-svn: 277442
2016-08-02 10:43:10 +00:00
..
clang-apply-replacements [clang-apply-replacements] use Range::operator==() instead of self-defined operator. 2016-06-21 17:59:57 +00:00
clang-query Remove autoconf support 2016-01-26 21:31:36 +00:00
clang-rename ClangRenameTests: Update libdeps. 2016-07-22 17:33:04 +00:00
clang-tidy Changes related to new implementation of tooling::Replacements as class. 2016-08-01 10:16:39 +00:00
include/common Remove clang-modernize. 2015-12-17 11:49:19 +00:00
include-fixer [include-fixer] Correct nested class search for identifiers with scoped information 2016-08-02 10:43:10 +00:00
CMakeLists.txt [include-fixer] Add a prototype for a new include fixing tool. 2016-04-20 12:43:43 +00:00