file_name -> filename (#3791)

I wanted to choose one or the other. I think some code has been using
each from early on. We're predominately using `filename`, so
consolidating on that. This conveniently matches the [Google dev doc
style guide](https://developers.google.com/style/word-list#filename)
(which we use for docs) which says "filename: Not file name".

In toolchain:

```
╚╡git grep file_name . | wc -l
35
╚╡git grep filename . | wc -l
489
```
This commit is contained in:
Jon Ross-Perkins
2024-03-18 17:26:24 +00:00
committed by GitHub
parent 3884d3c27e
commit 4421a75c36
7 changed files with 35 additions and 35 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ namespace Carbon {
namespace {
struct FilenameTranslator : DiagnosticLocationTranslator<llvm::StringRef> {
auto GetLocation(llvm::StringRef filename) -> DiagnosticLocation override {
return {.file_name = filename};
return {.filename = filename};
}
};
} // namespace