-
Notifications
You must be signed in to change notification settings - Fork 342
New option format for prefix mapping #10723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
c24fa98
269df33
81e58f3
83b5c98
76bdee4
f0ed1e5
00e4160
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5093,6 +5093,18 @@ void Clang::AddPrefixMappingOptions(const ArgList &Args, ArgStringList &CmdArgs, | |
A->render(Args, CmdArgs); | ||
} | ||
} | ||
|
||
for (const Arg *A : Args.filtered(options::OPT_fdepscan_prefix_map)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should make a single loop that handles both There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I implemented this in my recent commit, could you please check that? 😄 |
||
A->claim(); | ||
StringRef Prefix = A->getValue(0); | ||
StringRef MapTarget = A->getValue(1); | ||
if (MapTarget.size() == 0 || !IsPathApplicableAsPrefix(Prefix)) { | ||
D.Diag(diag::err_drv_invalid_argument_to_option) | ||
<< A->getValue() << A->getOption().getName(); | ||
} else { | ||
A->render(Args, CmdArgs); | ||
} | ||
} | ||
} | ||
|
||
static void addCachingOptions(ArgStringList &CmdArgs) { | ||
|
Uh oh!
There was an error while loading. Please reload this page.