This is an archive of the discontinued LLVM Phabricator instance.

[Tooling/DependencyScanning] Rename refactorings towards transitioning dependency scanning to use pre-lexed preprocessor directive tokens
ClosedPublic

Authored by akyrtzi on May 12 2022, 10:57 AM.

Details

Summary

This is 1/4 of a series of patches for making the special lexing for dependency scanning a first-class feature of the Preprocessor and Lexer.
This patch only includes NFC renaming changes to make reviewing of the functionality changing parts easier.

Diff Detail

Event Timeline

akyrtzi created this revision.May 12 2022, 10:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2022, 10:57 AM
Herald added a subscriber: mgorny. · View Herald Transcript
akyrtzi requested review of this revision.May 12 2022, 10:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2022, 10:57 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jansvoboda11 accepted this revision.May 12 2022, 11:16 AM

LGTM! Thanks for splitting this out.

clang/tools/clang-scan-deps/ClangScanDeps.cpp
120

Probably unnecessary bike-shedding, but something like preprocess-dependency-directives or scan-and-preprocess-dependency-directives would read better IMO. Up to you whether you change this.

This revision is now accepted and ready to land.May 12 2022, 11:16 AM
akyrtzi updated this revision to Diff 429087.May 12 2022, 3:30 PM

Rename the clang-scan-deps flag from "-preprocess-directives-scan" to "-preprocess-dependency-directives"

akyrtzi marked an inline comment as done.May 12 2022, 3:31 PM
akyrtzi added inline comments.
clang/tools/clang-scan-deps/ClangScanDeps.cpp
120

preprocess-dependency-directives is indeed better, I've renamed the flag to that 👍

This revision was automatically updated to reflect the committed changes.
akyrtzi marked an inline comment as done.