Skip to content

Rename "build configurations" to "conditional compilation blocks". #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

Merged

Conversation

jrose-apple
Copy link
Contributor

...because "build configuration" is already the name of an Xcode feature.

  • #if et al are "conditional compilation directives".
  • The condition is a "conditional compilation expression", or just "condition" if it's obvious.
  • The predicates are "platform conditions" (including swift(>=...))
  • The options set with -D are "custom conditional compilation flags". (Thanks, @kballard!)

I left "IfConfigDecl" as is, as well as SourceKit's various "BuildConfig" settings because some of them are part of the SourceKit request format. We can change these in follow-up commits, or not. (cc @akyrtzi and @nkcsgexi)

rdar://problem/19812930

...because "build configuration" is already the name of an Xcode feature.

- '#if' et al are "conditional compilation directives".
- The condition is a "conditional compilation expression", or just
  "condition" if it's obvious.
- The predicates are "platform conditions" (including 'swift(>=...)')
- The options set with -D are "custom conditional compilation flags".
  (Thanks, Kevin!)

I left "IfConfigDecl" as is, as well as SourceKit's various "BuildConfig"
settings because some of them are part of the SourceKit request format.
We can change these in follow-up commits, or not.

rdar://problem/19812930
Also move a Parse test that's really about conditional compilation
directives into the new folder.
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@lattner
Copy link
Contributor

lattner commented Feb 12, 2016

This approach makes sense to me. Thank you for fixing the diagnostics to be more specific instead of referring to "conditional compilation blocks" mechanically.

@nkcsgexi
Copy link
Contributor

Text in source kit request format is expensive to change. I am fine with leaving as it is.

@jrose-apple
Copy link
Contributor Author

Pretty sure that's not my failure, merging anyway!

jrose-apple added a commit that referenced this pull request Feb 12, 2016
Rename "build configurations" to "conditional compilation blocks".
@jrose-apple jrose-apple merged commit c90511a into swiftlang:master Feb 12, 2016
@jrose-apple jrose-apple deleted the conditional-compilation-blocks branch February 12, 2016 22:02
MaxDesiatov added a commit that referenced this pull request Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants