-
Notifications
You must be signed in to change notification settings - Fork 307
Index clang files #1289
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
Index clang files #1289
Conversation
Fixes swiftlang#1253 rdar://127474135
@swift-ci Please test |
"-MP", | ||
// Don't writ out compilation databases | ||
"-MJ", | ||
// Continue in the presence of errors during indexing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the reason? Or is it just that we don't have a decent timestamp to use for the "build session" here? Or does having this enable verification where we wouldn't otherwise?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, I don’t know. I was trying to infer it but maybe I was wrong. I just removed the explanation for now.
result.reserveCapacity(compilerArguments.count) | ||
var iterator = compilerArguments.makeIterator() | ||
while let argument = iterator.next() { | ||
if removeFlags.contains(argument) || argument.starts(with: "-fbuild-session-file=") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does serailize-diagnostics
also allow =
? Does -fbuild-session-file
allow a separate arg rather than =
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, serailize-diagnostics
does not allow =
and -fbuild-session-file
requires a =
. But eg. -MT
doesn’t require a space. And serialize-diagnostics
can be spelled with a single or multiple spaces.
I ended up generalizing the entire command line argument matching in #1314
Fixes #1253
rdar://127474135