mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 23:42:42 +00:00
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:
1 parent
3884d3c27e
commit
4421a75c36
7 files changed
+35
-35
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user