mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 14:36:39 +00:00
Switch SourceBuffer to diagnostics. (#3197)
This updates SourceBuffer to diagnostics. Some additional edits to diagnostics were necessary due to issues moving arguments around, which seems to stem from a compile error with clang 14 (fixed in later versions). --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
1 parent
71e9fb7511
commit
bc63e6ae0a
15 files changed
+104
-52
No files matched your search
@@ -401,8 +401,8 @@ class Driver::CompilationUnit {
|
||||
// Loads source and lexes it. Returns true on success.
|
||||
auto RunLex() -> bool {
|
||||
LogCall("SourceBuffer::CreateFromFile", [&] {
|
||||
source_ = SourceBuffer::CreateFromFile(
|
||||
driver_->fs_, driver_->error_stream_, input_file_name_);
|
||||
source_ = SourceBuffer::CreateFromFile(driver_->fs_, input_file_name_,
|
||||
*consumer_);
|
||||
});
|
||||
if (!source_) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user