OSDN Git Service

Frontend: Migrate to FileEntryRef in VerifyDiagnosticConsumer.cpp, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 4 Dec 2020 22:41:52 +0000 (14:41 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 9 Dec 2020 19:51:43 +0000 (11:51 -0800)
commit82789228c65317ceea3fdcc08c573c5ca780021e
tree63264e422d0e0f39b737d7906c0ae2508b8cb46a
parente5a28e1261a0c42821cb3bd4dc40092c458fadfb
Frontend: Migrate to FileEntryRef in VerifyDiagnosticConsumer.cpp, NFC

Add a `FileEntryRef` overload of `SourceManager::translateFile`, and
migrate `ParseDirective` in VerifyDiagnosticConsumer.cpp to use it and
the corresponding overload of `createFileID`.

No functionality change here.

Differential Revision: https://reviews.llvm.org/D92699
clang/include/clang/Basic/SourceManager.h
clang/lib/Frontend/VerifyDiagnosticConsumer.cpp