Home
last modified time | relevance | path

Searched refs:file_ (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_file.cc190 : file_(file), in FileGenerator()
200 for (int i = 0; i < file_->message_type_count(); ++i) { in FileGenerator()
202 generator_factory_->NewMessageGenerator(file_->message_type(i))); in FileGenerator()
204 for (int i = 0; i < file_->extension_count(); ++i) { in FileGenerator()
206 generator_factory_->NewExtensionGenerator(file_->extension(i))); in FileGenerator()
217 if (name_resolver_->HasConflictingClassName(file_, classname_, in Validate()
219 error->assign(file_->name()); in Validate()
234 file_, classname_, NameEquality::EQUAL_IGNORE_CASE)) { in Validate()
236 << file_->name() << ": The file's outer class name, \"" << classname_ in Validate()
245 if (file_->options().optimize_for() == FileOptions::LITE_RUNTIME && in Validate()
[all …]
Djava_shared_code_generator.cc53 : name_resolver_(new ClassNameResolver), file_(file), options_(options) {} in SharedCodeGenerator()
60 std::string java_package = FileJavaPackage(file_); in Generate()
63 if (HasDescriptorMethods(file_, options_.enforce_lite)) { in Generate()
65 std::string classname = name_resolver_->GetDescriptorClassName(file_); in Generate()
81 "filename", file_->name()); in Generate()
96 printer->Annotate("classname", file_->name()); in Generate()
130 file_->CopyTo(&file_proto); in GenerateDescriptors()
163 for (int i = 0; i < file_->dependency_count(); i++) { in GenerateDescriptors()
164 std::string filename = file_->dependency(i)->name(); in GenerateDescriptors()
165 std::string package = FileJavaPackage(file_->dependency(i)); in GenerateDescriptors()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/
Dparser_unittest.cc2556 FileDescriptorProto file_; member in google::protobuf::compiler::__anone42f123c0111::SourceInfoTest
2563 if (!parser_->Parse(input_.get(), &file_)) { in Parse()
2567 const SourceCodeInfo& source_info = file_.source_code_info(); in Parse()
2573 if (!FollowPath(file_, location.path().begin(), location.path().end(), in Parse()
2782 EXPECT_TRUE(HasSpan('a', 'q', file_)); in TEST_F()
2783 EXPECT_TRUE(HasSpan('b', 'c', file_, "package")); in TEST_F()
2784 EXPECT_TRUE(HasSpan('d', 'e', file_, "dependency", 0)); in TEST_F()
2785 EXPECT_TRUE(HasSpan('f', 'h', file_, "dependency", 1)); in TEST_F()
2786 EXPECT_TRUE(HasSpan('j', 'm', file_, "dependency", 2)); in TEST_F()
2787 EXPECT_TRUE(HasSpan('k', 'l', file_, "public_dependency", 0)); in TEST_F()
[all …]
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/
Dfile_input_stream.cc29 : file_(NULL), in FileInputStream()
47 if (file_) { in Close()
48 fclose(file_); in Close()
51 file_ = NULL; in Close()
65 if (!file_) { in Read()
71 if (feof(file_)) { in Read()
78 size_t length = fread(&value, 1, 1, file_); in Read()
89 if (!file_) { in Read()
95 if (feof(file_)) { in Read()
105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_reflection_class.cc57 file_(file) { in ReflectionClassGenerator()
74 if (file_->extension_count() > 0) { in Generate()
80 "file_name", file_->name()); in Generate()
82 for (int i = 0; i < file_->extension_count(); i++) { in Generate()
84 CreateFieldGenerator(file_->extension(i), -1, this->options())); in Generate()
94 if (file_->enum_type_count() > 0) { in Generate()
96 for (int i = 0; i < file_->enum_type_count(); i++) { in Generate()
97 EnumGenerator enumGenerator(file_->enum_type(i), this->options()); in Generate()
105 if (file_->message_type_count() > 0) { in Generate()
107 for (int i = 0; i < file_->message_type_count(); i++) { in Generate()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_file.cc96 : file_(file), options_(options), scc_analyzer_(options) { in FileGenerator()
100 variables_["tablename"] = UniqueName("TableStruct", file_, options_); in FileGenerator()
102 UniqueName("file_level_metadata", file_, options_); in FileGenerator()
103 variables_["desc_table"] = DescriptorTableName(file_, options_); in FileGenerator()
105 UniqueName("file_level_enum_descriptors", file_, options_); in FileGenerator()
107 UniqueName("file_level_service_descriptors", file_, options_); in FileGenerator()
108 variables_["filename"] = file_->name(); in FileGenerator()
109 variables_["package_ns"] = Namespace(file_, options); in FileGenerator()
129 if (HasGenericServices(file_, options_)) { in FileGenerator()
157 if (file_->name() != "net/proto2/compiler/proto/plugin.proto" && in GenerateMacroUndefs()
[all …]
/third_party/gn/src/base/files/
Dfile_win.cc24 return file_.IsValid(); in IsValid()
28 return file_.Get(); in GetPlatformFile()
32 return file_.Take(); in TakePlatformFile()
36 if (!file_.IsValid()) in Close()
39 file_.Close(); in Close()
48 if (!SetFilePointerEx(file_.Get(), distance, &res, move_method)) in Seek()
66 if (::ReadFile(file_.Get(), data, size, &bytes_read, &overlapped)) in Read()
80 if (::ReadFile(file_.Get(), data, size, &bytes_read, NULL)) in ReadAtCurrentPos()
109 if (::WriteFile(file_.Get(), data, size, &bytes_written, &overlapped)) in Write()
121 if (::WriteFile(file_.Get(), data, size, &bytes_written, NULL)) in WriteAtCurrentPos()
[all …]
Dfile_posix.cc122 return file_.is_valid(); in IsValid()
126 return file_.get(); in GetPlatformFile()
130 return file_.release(); in TakePlatformFile()
137 file_.reset(); in Close()
144 return lseek(file_.get(), static_cast<off_t>(offset), in Seek()
156 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, size - bytes_read, in Read()
175 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos()
187 return HANDLE_EINTR(pread(file_.get(), data, size, offset)); in ReadNoBestEffort()
195 return HANDLE_EINTR(read(file_.get(), data, size)); in ReadAtCurrentPosNoBestEffort()
199 if (IsOpenAppend(file_.get())) in Write()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc301 Generator::Generator() : file_(nullptr) {} in Generator()
337 file_ = file; in Generate()
349 file_->CopyTo(&fdp); in Generate()
358 PrintTopBoilerplate(printer_, file_, GeneratingDescriptorProto()); in Generate()
396 for (int i = 0; i < file_->dependency_count(); ++i) { in PrintImports()
397 const std::string& filename = file_->dependency(i)->name(); in PrintImports()
424 CopyPublicDependenciesAliases(module_alias, file_->dependency(i)); in PrintImports()
429 for (int i = 0; i < file_->public_dependency_count(); ++i) { in PrintImports()
430 std::string module_name = ModuleName(file_->public_dependency(i)->name()); in PrintImports()
440 m["name"] = file_->name(); in PrintFileDescriptor()
[all …]
/third_party/ninja/src/
Ddeps_log.cc54 assert(!file_); in OpenForWrite()
117 if (fwrite(&size, 4, 1, file_) < 1) in RecordDeps()
120 if (fwrite(&id, 4, 1, file_) < 1) in RecordDeps()
123 if (fwrite(&mtime_part, 4, 1, file_) < 1) in RecordDeps()
126 if (fwrite(&mtime_part, 4, 1, file_) < 1) in RecordDeps()
130 if (fwrite(&id, 4, 1, file_) < 1) in RecordDeps()
133 if (fflush(file_) != 0) in RecordDeps()
147 if (file_) in Close()
148 fclose(file_); in Close()
149 file_ = NULL; in Close()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_file.cc189 : file_(file), in FileGenerator()
193 for (int i = 0; i < file_->enum_type_count(); i++) { in FileGenerator()
194 EnumGenerator *generator = new EnumGenerator(file_->enum_type(i)); in FileGenerator()
197 for (int i = 0; i < file_->message_type_count(); i++) { in FileGenerator()
199 new MessageGenerator(root_class_name_, file_->message_type(i), options_); in FileGenerator()
202 for (int i = 0; i < file_->extension_count(); i++) { in FileGenerator()
204 new ExtensionGenerator(root_class_name_, file_->extension(i)); in FileGenerator()
248 for (int i = 0; i < file_->public_dependency_count(); i++) { in GenerateHeader()
249 import_writer.AddFile(file_->public_dependency(i), header_extension); in GenerateHeader()
346 if (FileContainsEnums(file_)) { in GenerateSource()
[all …]
/third_party/gn/src/gn/
Dlocation.cc16 : file_(file), line_number_(line_number), column_number_(column_number) {} in Location()
19 return (file_ == other.file_ && line_number_ == other.line_number_ && in operator ==()
28 DCHECK(file_ == other.file_); in operator <()
34 DCHECK(file_ == other.file_); in operator <=()
40 if (!file_) in Describe()
44 if (file_->friendly_name().empty()) in Describe()
45 ret = file_->name().value(); in Describe()
47 ret = file_->friendly_name(); in Describe()
Dc_include_iterator.cc124 : input_file_(input), file_(input->contents()) {} in CIncludeIterator()
158 if (offset_ == file_.size()) in GetNextLine()
162 while (offset_ < file_.size() && file_[offset_] != '\n') in GetNextLine()
166 *line = file_.substr(begin, offset_ - begin); in GetNextLine()
170 if (offset_ < file_.size()) in GetNextLine()
Dfile_writer.cc34 file_ = base::win::ScopedHandle(::CreateFile( in Create()
38 valid_ = file_.IsValid(); in Create()
51 ::WriteFile(file_.Get(), str.data(), str.size(), &written, nullptr); in Write()
68 HANDLE handle = file_.Take(); in Close()
/third_party/node/deps/v8/src/diagnostics/
Dcode-tracer.h23 explicit CodeTracer(int isolate_id) : file_(nullptr), scope_depth_(0) { in CodeTracer()
25 file_ = stdout; in CodeTracer()
80 if (file_ == nullptr) { in OpenFile()
81 file_ = base::OS::FOpen(filename_.begin(), "ab"); in OpenFile()
82 CHECK_WITH_MSG(file_ != nullptr, in OpenFile()
96 DCHECK_NOT_NULL(file_); in CloseFile()
97 base::Fclose(file_); in CloseFile()
98 file_ = nullptr; in CloseFile()
102 FILE* file() const { return file_; } in file()
108 FILE* file_; variable
/third_party/openh264/test/utils/
DFileInputStream.h10 file_.open (fileName, std::ios_base::in | std::ios_base::binary); in Open()
11 return file_.is_open(); in Open()
14 if (!file_.good()) { in read()
17 file_.read (static_cast<char*> (ptr), len); in read()
18 return (int) file_.gcount(); in read()
21 std::ifstream file_;
/third_party/node/deps/v8/src/torque/
Dcpp-builder.h211 : file_(file), name_(std::move(name)) { in IncludeGuardScope()
212 file_->BeginIncludeGuard(name_); in IncludeGuardScope()
215 IncludeGuardScope(IncludeGuardScope&& other) V8_NOEXCEPT : file_(nullptr), in IncludeGuardScope()
217 std::swap(file_, other.file_); in IncludeGuardScope()
221 if (file_) { in ~IncludeGuardScope()
222 file_->EndIncludeGuard(name_); in ~IncludeGuardScope()
228 DCHECK_NULL(file_);
230 std::swap(file_, other.file_);
237 File* file_;
/third_party/skia/third_party/externals/zlib/google/
Dzip_reader.cc447 FileWriterDelegate::FileWriterDelegate(base::File* file) : file_(file) {} in FileWriterDelegate()
450 : file_(file.get()), owned_file_(std::move(file)) {} in FileWriterDelegate()
453 if (!file_->SetLength(file_length_)) { in ~FileWriterDelegate()
459 return file_->Seek(base::File::FROM_BEGIN, 0) >= 0; in PrepareOutput()
463 int bytes_written = file_->WriteAtCurrentPos(data, num_bytes); in WriteBytes()
470 file_->SetTimes(base::Time::Now(), time); in SetTimeModified()
487 file_.Initialize(output_file_path_, in PrepareOutput()
489 return file_.IsValid(); in PrepareOutput()
493 return num_bytes == file_.WriteAtCurrentPos(data, num_bytes); in WriteBytes()
497 file_.Close(); in SetTimeModified()
Dzip_reader_unittest.cc53 file_.Initialize(path, flags); in FileWrapper()
58 base::PlatformFile platform_file() { return file_.GetPlatformFile(); } in platform_file()
60 base::File* file() { return &file_; } in file()
63 base::File file_; member in __anon5d8cab880111::FileWrapper
634 file_.Initialize(temp_file_path_, (base::File::FLAG_CREATE_ALWAYS | in SetUp()
639 ASSERT_TRUE(file_.IsValid()); in SetUp()
647 ASSERT_NE(-1LL, file_.Write(0LL, kSomeData, kSomeDataLen)); in PopulateFile()
651 base::File file_; member in zip::FileWriterDelegateTest
662 FileWriterDelegate writer(&file_); in TEST_F()
666 ASSERT_EQ(kSomeDataLen, file_.GetLength()); in TEST_F()
[all …]
/third_party/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl.cc102 : file_(file_descriptor), in CopyingFileInputStream()
120 if (close_no_eintr(file_) != 0) { in Close()
136 result = read(file_, buffer, size); in Read()
150 if (!previous_seek_failed_ && lseek(file_, count, SEEK_CUR) != (off_t)-1) { in Skip()
189 : file_(file_descriptor), in CopyingFileOutputStream()
206 if (close_no_eintr(file_) != 0) { in Close()
227 bytes = write(file_, buffer_base + total_written, size - total_written); in Write()
/third_party/node/deps/v8/third_party/zlib/google/
Dzip_reader.cc573 FileWriterDelegate::FileWriterDelegate(base::File* file) : file_(file) { in FileWriterDelegate()
574 DCHECK(file_); in FileWriterDelegate()
579 DCHECK_EQ(file_, &owned_file_); in FileWriterDelegate()
585 DCHECK(file_); in PrepareOutput()
587 if (!file_->IsValid()) { in PrepareOutput()
592 const int64_t length = file_->GetLength(); in PrepareOutput()
595 << file_->GetPlatformFile(); in PrepareOutput()
602 << "File handle " << file_->GetPlatformFile() in PrepareOutput()
609 int bytes_written = file_->WriteAtCurrentPos(data, num_bytes); in WriteBytes()
616 file_->SetTimes(base::Time::Now(), time); in SetTimeModified()
[all …]
/third_party/node/deps/zlib/google/
Dzip_reader.cc615 FileWriterDelegate::FileWriterDelegate(base::File* file) : file_(file) { in FileWriterDelegate()
616 DCHECK(file_); in FileWriterDelegate()
621 DCHECK_EQ(file_, &owned_file_); in FileWriterDelegate()
627 DCHECK(file_); in PrepareOutput()
629 if (!file_->IsValid()) { in PrepareOutput()
634 const int64_t length = file_->GetLength(); in PrepareOutput()
637 << file_->GetPlatformFile(); in PrepareOutput()
644 << "File handle " << file_->GetPlatformFile() in PrepareOutput()
651 int bytes_written = file_->WriteAtCurrentPos(data, num_bytes); in WriteBytes()
658 file_->SetTimes(base::Time::Now(), time); in SetTimeModified()
[all …]
Dzip_reader_unittest.cc59 file_.Initialize(path, flags); in FileWrapper()
64 base::PlatformFile platform_file() { return file_.GetPlatformFile(); } in platform_file()
66 base::File* file() { return &file_; } in file()
69 base::File file_; member in __anon88ff19e30111::FileWrapper
885 file_.Initialize(temp_file_path_, in SetUp()
889 ASSERT_TRUE(file_.IsValid()); in SetUp()
893 base::File file_; member in zip::FileWriterDelegateTest
900 FileWriterDelegate writer(&file_); in TEST_F()
907 EXPECT_EQ(payload.size(), file_.GetLength()); in TEST_F()
914 FileWriterDelegate writer(&file_); in TEST_F()
[all …]
/third_party/node/deps/v8/include/cppgc/
Dsource-location.h65 constexpr const char* FileName() const { return file_; } in FileName()
83 : function_(function), file_(file), line_(line) {} in SourceLocation()
86 const char* file_ = nullptr; variable
/third_party/node/deps/v8/src/heap/cppgc/
Dsource-location.cc10 if (!file_) { in ToString()
13 return std::string(function_) + "@" + file_ + ":" + std::to_string(line_); in ToString()

1234