Robert Widmann
76d25e7097
[NFC] Fixup InputFile Convenience Getters
...
Follow programming guidelines for these getters more closely and have them return a non-owning view of the underlying data instead of relying on callers to take const references to the copy that is returned here.
2020-11-12 14:54:02 -08:00
Robert Widmann
a8766cce5b
[NFC] Refactor InputFile's Accessors
2020-09-11 22:28:58 -06:00
Robert Widmann
0a5a6f17c8
[NFC] Drop InputFileKind
2020-09-11 22:28:58 -06:00
Robert Widmann
c7f0f24f47
[NFC] Refactor InputFile Construction
...
Add a new constructor that takes an explicit file_type::ID to allow for the eventual deletion of InputFileKind.
2020-09-11 22:28:58 -06:00
Robert Widmann
66ad0c1c40
[Gardening] Document InputFile
2020-09-11 21:24:26 -06:00
Robert Widmann
d4b2e167ac
Model ObjCHeader Inputs
...
These inputs were previously modeled as Swift files, which would lead to bizarre situations where parts of the pipeline expecting Swift inputs actually wound up parsing Objective-C.
2020-09-11 13:55:48 -06:00
Varun Gandhi
ea92df04e1
[NFC] Remove redundant includes for <vector>.
2020-05-31 13:05:02 -07:00
Hamish Knight
72bb47ee90
[Frontend] Remove InputFileKind::SwiftREPL
2020-05-07 11:00:02 -07:00
moatom
2e95a0d265
Fix include guards
2019-06-02 12:10:43 +09:00
Jordan Rose
d9e47650d5
Add a new SourceFileKind and InputFileKind for textual interfaces
...
And test this by tweaking the rules to allow functions without
definitions, like SIL files.
2018-08-07 08:55:07 -07:00
Jordan Rose
061204c704
Remove "IFK_" prefix from enum class InputFileKind
...
I suspect this was converted from a non-scoped enum in the past.
No functionality change.
2018-08-07 08:54:31 -07:00
Jordan Rose
41286bc676
Make JSON fix-it outputs be per-primary in batch mode. ( #14995 )
...
This means moving the output path into SupplementaryOutputPaths, and
using the same sort of diagnostic dispatching that serialized
diagnostics use. This is part of what's needed to run the migrator
in batch mode.
2018-03-09 11:58:54 -08:00
Jordan Rose
de74836673
Wire up FileSpecificDiagnosticConsumer for serialized diagnostics
...
It appears to work!
2018-03-02 13:23:16 -08:00
David Ungar
4866df6dfd
Move SupplementaryOutputs into each InputFile.
2018-02-28 09:41:49 -08:00
David Ungar
614006bc4f
Move main outputs to FrontendInputsAndOutputs and InputFile
2018-02-01 11:55:08 -08:00
David Ungar
e006825d88
Move convertBufferNameFromLLVM_getFileOrSTDIN_toSwiftConventions deeper in the call stack.
2018-01-30 18:55:02 -08:00
David Ungar
4ac390d24d
Move InputFile into a dedicated header.
2018-01-18 14:57:27 -08:00