mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 11:42:39 +00:00
Rename Ptr<T> to Nonnull<T*> (#832)
Note that ptr.h also includes an enable_if change, to help avoid https://bugs.llvm.org/show_bug.cgi?id=51881
This commit is contained in:
1 parent
5e66248db0
commit
56dc4ae375
35 files changed
+584
-535
No files matched your search
@@ -18,7 +18,7 @@ using SyntaxErrorCode = int;
|
||||
|
||||
// Returns the AST representing the contents of the named file, or an error code
|
||||
// if parsing fails. Allocations go into the provided arena.
|
||||
auto Parse(Ptr<Arena> arena, const std::string& input_file_name)
|
||||
auto Parse(Nonnull<Arena*> arena, const std::string& input_file_name)
|
||||
-> std::variant<Carbon::AST, SyntaxErrorCode>;
|
||||
|
||||
} // namespace Carbon
|
||||
|
||||
Reference in new issue
Block a user