mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 12:31:04 +01: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:
co-authored by
Richard Smith
parent
71e9fb7511
commit
bc63e6ae0a
@@ -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