[PATCH] D30435: [clang-import-test] Lookup inside entities
Sean Callanan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 27 16:16:10 PST 2017
spyffe created this revision.
Herald added a subscriber: jgosnell.
clang-import-test has until now been only able to report top-level entities. This is clearly insufficient; we should be able to look inside structs and namespaces also.
This patch adds new test cases for a variety of lookups inside existing entities, and adds the functionality necessary to make most of these testcases work.
One testcase is known to fail because of ASTImporter limitations when importing templates; this will be addressed separately.
Repository:
rL LLVM
https://reviews.llvm.org/D30435
Files:
test/Import/forward-declared-struct/Inputs/S1.c
test/Import/forward-declared-struct/Inputs/S2.c
test/Import/forward-declared-struct/test.c
test/Import/member-in-struct/Inputs/S.c
test/Import/member-in-struct/test.c
test/Import/multiple-forward-declarations/Inputs/S1.c
test/Import/multiple-forward-declarations/Inputs/S2.c
test/Import/multiple-forward-declarations/test.c
test/Import/overloaded-function/Inputs/F1.c
test/Import/overloaded-function/Inputs/F2.c
test/Import/overloaded-function/test.c
test/Import/struct-in-namespace/Inputs/N1.cpp
test/Import/struct-in-namespace/Inputs/N2.cpp
test/Import/struct-in-namespace/test.cpp
test/Import/template-specialization/Inputs/T.cpp
test/Import/template-specialization/test.cpp
tools/clang-import-test/clang-import-test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30435.89949.patch
Type: text/x-patch
Size: 13103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170228/d907126e/attachment.bin>
More information about the cfe-commits
mailing list