llvm-capstone/clang/lib/AST
Sunrise 3542168be0
[clang][AST] fix lack comparison of declRefExpr in ASTStructuralEquivalence (#66041)
Fixed #66047
Before fix,the following testcase expected true.
```cpp
TEST_F(StructuralEquivalenceStmtTest, DeclRefENoEq) {
  std::string Prefix = "enum Test { AAA, BBB };";
  auto t = makeStmts(
      Prefix + "void foo(int i) {if (i > 0) {i = AAA;} else {i = BBB;}}",
      Prefix + "void foo(int i) {if (i > 0) {i = BBB;} else {i = AAA;}}",
      Lang_CXX03, ifStmt());
  EXPECT_FALSE(testStructuralMatch(t)); // EXPECT_TRUE
}
```
2023-09-21 14:55:19 +08:00
..
Interp [clang][Interp][NFC] Small code refactoring 2023-09-20 14:33:46 +02:00
APValue.cpp [NFC] Add checks for self-assignment. 2023-08-24 09:20:58 -07:00
ASTConcept.cpp [NFC] Cleanup some #includes in header files 2023-09-01 15:23:46 -07:00
ASTConsumer.cpp
ASTContext.cpp [NFC] Remove unneeded header includes 2023-09-05 13:12:00 -07:00
ASTDiagnostic.cpp
ASTDumper.cpp [AST] Support ConceptReference in DynTypedNode, add dump(). 2023-09-04 13:56:15 +02:00
ASTImporter.cpp [HLSL] Cleanup support for this as an l-value 2023-09-05 19:38:50 -05:00
ASTImporterLookupTable.cpp
ASTStructuralEquivalence.cpp [clang][AST] fix lack comparison of declRefExpr in ASTStructuralEquivalence (#66041) 2023-09-21 14:55:19 +08:00
ASTTypeTraits.cpp [AST] Support ConceptReference in DynTypedNode, add dump(). 2023-09-04 13:56:15 +02:00
AttrDocTable.cpp
AttrImpl.cpp
CMakeLists.txt cmake: add missing dependencies on ClangDriverOptions tablegen 2023-08-04 10:27:19 -07:00
Comment.cpp
CommentBriefParser.cpp
CommentCommandTraits.cpp
CommentLexer.cpp
CommentParser.cpp
CommentSema.cpp [C23] Rename C2x -> C23; NFC 2023-08-11 07:43:43 -04:00
ComparisonCategories.cpp
ComputeDependence.cpp
CXXABI.h
CXXInheritance.cpp
DataCollection.cpp
Decl.cpp [clang][NFC] Replace deprected *cast_or_null casts 2023-09-13 14:54:21 +02:00
DeclarationName.cpp
DeclBase.cpp
DeclCXX.cpp [HLSL] Cleanup support for this as an l-value 2023-09-05 19:38:50 -05:00
DeclFriend.cpp
DeclGroup.cpp
DeclObjC.cpp
DeclOpenMP.cpp
DeclPrinter.cpp Remove extra switch from 0323938d 2023-09-11 07:16:27 -07:00
DeclTemplate.cpp [NFC] Cleanup some #includes in header files 2023-09-01 15:23:46 -07:00
Expr.cpp [C23] Rename C2x -> C23; NFC 2023-08-11 07:43:43 -04:00
ExprClassification.cpp
ExprConcepts.cpp Implement mangling rules for C++20 concepts and requires-expressions. 2023-09-20 12:38:15 -07:00
ExprConstant.cpp [clang] Bail out when handling union access with virtual inheritance 2023-09-14 08:48:59 +02:00
ExprCXX.cpp [HLSL] Cleanup support for this as an l-value 2023-09-05 19:38:50 -05:00
ExprObjC.cpp
ExternalASTMerger.cpp
ExternalASTSource.cpp
FormatString.cpp [clang] Emit Wformat for bool value and char specifier confusion in scanf 2023-09-01 01:38:07 -07:00
FormatStringParsing.h
InheritViz.cpp
ItaniumCXXABI.cpp
ItaniumMangle.cpp Implement mangling rules for C++20 concepts and requires-expressions. 2023-09-20 12:38:15 -07:00
JSONNodeDumper.cpp [clang] - Add missing builtin name to AtomicExpr JSON dump 2023-08-28 06:34:57 +02:00
Linkage.h
Mangle.cpp [X86][Regcall] Add an option to respect regcall ABI v.4 in win64&win32 2023-08-03 13:58:33 +08:00
MicrosoftCXXABI.cpp [AST] Modernize MicrosoftNumberingContext (NFC) 2023-08-27 09:24:26 -07:00
MicrosoftMangle.cpp Reapply "[clang] NFCI: Adopt SourceManager::getFileEntryRefForID()" 2023-09-08 19:04:01 -07:00
NestedNameSpecifier.cpp
NSAPI.cpp
ODRDiagsEmitter.cpp
ODRHash.cpp
OpenMPClause.cpp
OSLog.cpp
ParentMap.cpp
ParentMapContext.cpp
PrintfFormatString.cpp
QualTypeNames.cpp
Randstruct.cpp
RawCommentList.cpp
RecordLayout.cpp
RecordLayoutBuilder.cpp [AST] Modernize ExternalLayout (NFC) 2023-08-20 09:42:57 -07:00
ScanfFormatString.cpp
SelectorLocationsKind.cpp
Stmt.cpp
StmtCXX.cpp
StmtIterator.cpp
StmtObjC.cpp
StmtOpenMP.cpp [OpenMP 5.1] Parsing and Sema support for scope directive 2023-08-24 18:13:52 -07:00
StmtPrinter.cpp [NFC][Clang] Fix static analyzer concerns 2023-08-29 12:23:26 -07:00
StmtProfile.cpp [clang] [C23] Fix crash with _BitInt running clang-tidy (#65889) 2023-09-20 05:06:45 -05:00
StmtViz.cpp
TemplateBase.cpp
TemplateName.cpp
TextNodeDumper.cpp [AST] Fix nested name specifiers printing as NamespaceNamespace (#65266) 2023-09-05 18:15:06 +02:00
Type.cpp [AST] Remove unneeded return false from UseExcessPrecision. NFC. 2023-08-30 16:05:55 +08:00
TypeLoc.cpp Add a concept AST node. 2023-08-31 10:22:21 +02:00
TypePrinter.cpp [Clang][AArch64] Add/implement ACLE keywords for SME. 2023-08-08 07:00:59 +00:00
VTableBuilder.cpp Reland "[clang] Add experimental option to omit the RTTI component from the vtable when -fno-rtti is used" 2023-09-14 18:28:37 +00:00
VTTBuilder.cpp