Skip to content

Commit a98d0ff

Browse files
committed
Add actual fix and release note
1 parent 62dcfb1 commit a98d0ff

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ clang-format
557557

558558
libclang
559559
--------
560+
- Fixed a bug in ``clang_File_isEqual`` that sometimes led to different
561+
in-memory files to be considered as equal.
560562
- Added ``clang_visitCXXMethods``, which allows visiting the methods
561563
of a class.
562564

clang/tools/libclang/CIndex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5170,7 +5170,7 @@ int clang_File_isEqual(CXFile file1, CXFile file2) {
51705170

51715171
FileEntryRef FEnt1 = *cxfile::getFileEntryRef(file1);
51725172
FileEntryRef FEnt2 = *cxfile::getFileEntryRef(file2);
5173-
return FEnt1.getUniqueID() == FEnt2.getUniqueID();
5173+
return FEnt1 == FEnt2;
51745174
}
51755175

51765176
CXString clang_File_tryGetRealPathName(CXFile SFile) {

0 commit comments

Comments
 (0)