llvm-project/clang/unittests/AST
Chuanqi Xu 0bc993edf4 [AST] [Modules] Introduce Decl::getNonTransparentDeclContext to handle exported friends
Closing https://github.com/llvm/llvm-project/issues/56826.

The root cause for pr56826 is: when we collect the template args for the
friend, we need to judge if the friend lives in file context. However,
if the friend lives in ExportDecl lexically, the judgement here is
invalid.

The solution is easy. We should judge the non transparent context and
the ExportDecl is transparent context. So the solution should be good.

A main concern may be the patch doesn't handle all the places of the
same defect. I think it might not be bad since the patch itself should
be innocent.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D131651
2022-08-12 11:50:35 +08:00
..
ASTContextParentMapTest.cpp
ASTImporterFixtures.cpp
ASTImporterFixtures.h [clang][NFC][AST] rename the ImportError to ASTImportError 2022-06-15 00:40:32 +05:30
ASTImporterGenericRedeclTest.cpp
ASTImporterODRStrategiesTest.cpp [clang][NFC][AST] rename the ImportError to ASTImportError 2022-06-15 00:40:32 +05:30
ASTImporterObjCTest.cpp
ASTImporterTest.cpp Clang: fix AST representation of expanded template arguments. 2022-08-09 14:26:16 +02:00
ASTImporterVisibilityTest.cpp
ASTPrint.h
ASTTraverserTest.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
ASTTypeTraitsTest.cpp
ASTVectorTest.cpp
AttrTest.cpp Fix signed/unsigned comparison warning 2022-06-15 11:53:08 +01:00
CMakeLists.txt
CommentLexer.cpp
CommentParser.cpp
CommentTextTest.cpp
DataCollectionTest.cpp
DeclMatcher.h
DeclPrinterTest.cpp Revert "Revert "[clang] Dont print implicit forrange initializer"" 2022-06-17 16:51:16 +02:00
DeclTest.cpp [AST] [Modules] Introduce Decl::getNonTransparentDeclContext to handle exported friends 2022-08-12 11:50:35 +08:00
EvaluateAsRValueTest.cpp
ExternalASTSourceTest.cpp
MatchVerifier.h
NamedDeclPrinterTest.cpp
RandstructTest.cpp
RecursiveASTVisitorTest.cpp
SizelessTypesTest.cpp
SourceLocationTest.cpp
StmtPrinterTest.cpp
StructuralEquivalenceTest.cpp Fixed a number of typos 2022-08-01 13:13:18 -04:00
TemplateNameTest.cpp
TypePrinterTest.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00