This is an archive of the discontinued LLVM Phabricator instance.

[clang][lex] Remove `Preprocessor::GetCurDirLookup()`
ClosedPublic

Authored by jansvoboda11 on Feb 14 2022, 6:31 AM.

Details

Summary

Preprocessor exposes the search directory iterator via GetCurDirLookup() getter, which is only used in two static functions.

To simplify reasoning about search directory iterators/references and to simplify the Preprocessor API, this patch makes the two static functions private member functions and removes the getter entirely.

Depends D119708.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Feb 14 2022, 6:31 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2022, 6:31 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ahoppen accepted this revision.Feb 14 2022, 9:12 AM
This revision is now accepted and ready to land.Feb 14 2022, 9:12 AM
dexonsmith accepted this revision.Feb 14 2022, 7:33 PM

LGTM too.