Home
last modified time | relevance | path

Searched refs:SourceFile (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/third_party/gn/src/gn/
Dsource_file_unittest.cc12 TEST(SourceFile, Normalize) { in TEST() argument
13 SourceFile a("//foo/../bar.cc"); in TEST()
17 SourceFile b(std::move(b_str)); in TEST()
22 TEST(SourceFile, GetType) { in TEST() argument
25 SourceFile::Type type; in TEST()
27 {"", SourceFile::SOURCE_UNKNOWN}, in TEST()
28 {"a.c", SourceFile::SOURCE_C}, in TEST()
29 {"a.cc", SourceFile::SOURCE_CPP}, in TEST()
30 {"a.cpp", SourceFile::SOURCE_CPP}, in TEST()
31 {"a.cxx", SourceFile::SOURCE_CPP}, in TEST()
[all …]
Dsource_file.cc32 SourceFile::Type GetSourceFileType(const std::string& file) { in GetSourceFileType()
40 return SourceFile::SOURCE_C; // .c in GetSourceFileType()
42 return SourceFile::SOURCE_H; // .h in GetSourceFileType()
44 return SourceFile::SOURCE_M; // .m in GetSourceFileType()
46 return SourceFile::SOURCE_O; // .o in GetSourceFileType()
49 return SourceFile::SOURCE_S; // .S and .s in GetSourceFileType()
51 return SourceFile::SOURCE_UNKNOWN; in GetSourceFileType()
60 return SourceFile::SOURCE_CPP; // .cc in GetSourceFileType()
62 return SourceFile::SOURCE_GO; // .go in GetSourceFileType()
64 return SourceFile::SOURCE_H; // .hh in GetSourceFileType()
[all …]
Dsource_file.h24 class SourceFile {
51 SourceFile() = default;
54 explicit SourceFile(const std::string& value);
55 explicit SourceFile(std::string&& value);
56 explicit SourceFile(StringAtom value);
58 ~SourceFile() = default;
100 bool operator==(const SourceFile& other) const {
103 bool operator!=(const SourceFile& other) const { return !operator==(other); }
104 bool operator<(const SourceFile& other) const {
109 bool operator()(const SourceFile& a, const SourceFile& b) const noexcept { in operator()
[all …]
Dninja_rust_binary_target_writer_unittest.cc25 target.sources().push_back(SourceFile("//foo/input1.rs")); in TEST_F()
26 target.sources().push_back(SourceFile("//foo/main.rs")); in TEST_F()
27 target.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
39 SourceFile main("//foo/main.rs"); in TEST_F()
40 target.sources().push_back(SourceFile("//foo/input3.rs")); in TEST_F()
42 target.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
93 SourceFile bazlib("//baz/lib.rs"); in TEST_F()
94 private_rlib.sources().push_back(SourceFile("//baz/privatelib.rs")); in TEST_F()
96 private_rlib.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
134 SourceFile farlib("//far/lib.rs"); in TEST_F()
[all …]
Dninja_c_binary_target_writer_unittest.cc29 target.sources().push_back(SourceFile("//foo/input1.cc")); in TEST_F()
30 target.sources().push_back(SourceFile("//foo/input2.cc")); in TEST_F()
33 target.sources().push_back(SourceFile("//foo/input3.o")); in TEST_F()
34 target.sources().push_back(SourceFile("//foo/input4.obj")); in TEST_F()
35 target.source_types_used().Set(SourceFile::SOURCE_CPP); in TEST_F()
36 target.source_types_used().Set(SourceFile::SOURCE_O); in TEST_F()
192 target.sources().push_back(SourceFile("//foo/input1.cc")); in TEST_F()
193 target.source_types_used().Set(SourceFile::SOURCE_CPP); in TEST_F()
227 target.sources().push_back(SourceFile("//foo/input1.cc")); in TEST_F()
228 target.source_types_used().Set(SourceFile::SOURCE_CPP); in TEST_F()
[all …]
Dsubstitution_writer.h18 class SourceFile; variable
74 std::vector<SourceFile>* output);
88 static SourceFile ApplyPatternToSource(const Target* target,
91 const SourceFile& source);
96 const SourceFile& source);
101 const SourceFile& source);
112 const SourceFile& source,
113 std::vector<SourceFile>* output);
117 const SourceFile& source,
122 const SourceFile& source,
[all …]
Dbinary_target_generator.cc96 const SourceFile::Type source_type = source.GetType(); in FillSources()
98 case SourceFile::SOURCE_CPP: in FillSources()
99 case SourceFile::SOURCE_MODULEMAP: in FillSources()
100 case SourceFile::SOURCE_H: in FillSources()
101 case SourceFile::SOURCE_C: in FillSources()
102 case SourceFile::SOURCE_M: in FillSources()
103 case SourceFile::SOURCE_MM: in FillSources()
104 case SourceFile::SOURCE_S: in FillSources()
105 case SourceFile::SOURCE_ASM: in FillSources()
106 case SourceFile::SOURCE_O: in FillSources()
[all …]
Dninja_create_bundle_target_writer_unittest.cc33 action->action_values().set_script(SourceFile("//foo/script.py")); in NewAction()
54 bundle_data.sources().push_back(SourceFile("//foo/input1.txt")); in TEST()
55 bundle_data.sources().push_back(SourceFile("//foo/input2.txt")); in TEST()
103 bundle_data.sources().push_back(SourceFile("//foo/input1.txt")); in TEST()
104 bundle_data.sources().push_back(SourceFile("//foo/input2.txt")); in TEST()
159 SourceFile("//out/Debug/baz/bar/bar_partial_info.plist")); in TEST()
187 SourceFile("//foo/Foo.xcassets/Contents.json")); in TEST()
189 SourceFile("//foo/Foo.xcassets/foo.colorset/Contents.json")); in TEST()
191 SourceFile("//foo/Foo.xcassets/foo.imageset/Contents.json")); in TEST()
193 SourceFile("//foo/Foo.xcassets/foo.imageset/FooIcon-29.png")); in TEST()
[all …]
Dloader_unittest.cc25 const SourceFile& source_file) { in ItemContainsBuildDependencyFile()
63 void AddCannedResponse(const SourceFile& source_file,
67 bool HasOnePending(const SourceFile& f) const;
68 bool HasTwoPending(const SourceFile& f1, const SourceFile& f2) const;
83 const SourceFile& file_name, in AsyncLoadFile()
90 using CannedResponseMap = std::map<SourceFile, std::unique_ptr<CannedResult>>;
93 std::vector<std::pair<SourceFile, Callback>> pending_;
107 const SourceFile& file_name, const Callback& callback, Err* err) { in GetAsyncCallback()
114 [this](const SourceFile& file_name, InputFile* file) { in GetSyncCallback()
124 void MockInputFileManager::AddCannedResponse(const SourceFile& source_file, in AddCannedResponse()
[all …]
Dninja_binary_target_writer_unittest.cc20 target.sources().push_back(SourceFile("//foo/input1.cc")); in TEST_F()
21 target.sources().push_back(SourceFile("//foo/input2.cc")); in TEST_F()
24 target.sources().push_back(SourceFile("//foo/input3.o")); in TEST_F()
25 target.sources().push_back(SourceFile("//foo/input4.obj")); in TEST_F()
26 target.source_types_used().Set(SourceFile::SOURCE_CPP); in TEST_F()
27 target.source_types_used().Set(SourceFile::SOURCE_O); in TEST_F()
122 target.sources().push_back(SourceFile("//foo/source1.cc")); in TEST_F()
123 target.config_values().inputs().push_back(SourceFile("//foo/input1")); in TEST_F()
124 target.config_values().inputs().push_back(SourceFile("//foo/input2")); in TEST_F()
125 target.source_types_used().Set(SourceFile::SOURCE_CPP); in TEST_F()
[all …]
Dsource_dir_unittest.cc23 source_root) == SourceFile()); in TEST()
29 source_root) == SourceFile()); in TEST()
34 source_root) == SourceFile()); in TEST()
40 source_root) == SourceFile("//foo")); in TEST()
44 source_root) == SourceFile("/foo")); in TEST()
50 SourceFile("//base/foo")); in TEST()
54 SourceFile("//base/foo")); in TEST()
57 source_root) == SourceFile("//foo")); in TEST()
65 SourceFile("/C:/source/foo")); in TEST()
70 SourceFile("/C:/source/foo")); in TEST()
[all …]
Dninja_bundle_data_target_writer_unittest.cc20 bundle_data.sources().push_back(SourceFile("//foo/input1.txt")); in TEST()
21 bundle_data.sources().push_back(SourceFile("//foo/input2.txt")); in TEST()
23 SourceFile("//foo/Foo.xcassets/Contents.json")); in TEST()
25 SourceFile("//foo/Foo.xcassets/foo.colorset/Contents.json")); in TEST()
27 SourceFile("//foo/Foo.xcassets/foo.imageset/Contents.json")); in TEST()
29 SourceFile("//foo/Foo.xcassets/foo.imageset/FooIcon-29.png")); in TEST()
31 SourceFile("//foo/Foo.xcassets/foo.imageset/FooIcon-29@2x.png")); in TEST()
33 SourceFile("//foo/Foo.xcassets/foo.imageset/FooIcon-29@3x.png")); in TEST()
Dbundle_data.h28 using SourceFiles = std::vector<SourceFile>;
60 SourceFile GetCompiledAssetCatalogPath() const;
72 SourceFile GetBundleRootDirOutput(const Settings* settings) const;
123 void set_partial_info_plist(const SourceFile& partial_info_plist) { in set_partial_info_plist()
126 const SourceFile& partial_info_plist() const { return partial_info_plist_; } in partial_info_plist()
128 void set_code_signing_script(const SourceFile& script_file) { in set_code_signing_script()
131 const SourceFile& code_signing_script() const { return code_signing_script_; } in code_signing_script()
133 std::vector<SourceFile>& code_signing_sources() { in code_signing_sources()
136 const std::vector<SourceFile>& code_signing_sources() const { in code_signing_sources()
199 SourceFile partial_info_plist_;
[all …]
Danalyzer.h25 const SourceFile& build_config_file,
26 const SourceFile& dot_file,
41 const std::set<const SourceFile*>& source_files) const;
76 bool ItemRefersToFile(const Item* item, const SourceFile* file) const;
79 const SourceFile* file,
89 const std::set<const SourceFile*>& modified_files) const;
98 const SourceFile build_config_file_;
99 const SourceFile dot_file_;
Dheader_checker_unittest.cc78 void PrintTo(const SourceFile& source_file, ::std::ostream* os) { in PrintTo()
154 InputFile input_file(SourceFile("//some_file.cc")); in TEST_F()
160 SourceFile d_header("//d_header.h"); in TEST_F()
161 d_.sources().push_back(SourceFile(d_header)); in TEST_F()
164 SourceFile b_public("//b_public.h"); in TEST_F()
169 SourceFile c_public("//c_public.h"); in TEST_F()
170 SourceFile c_private("//c_private.h"); in TEST_F()
194 SourceFile otc_header("//otc_header.h"); in TEST_F()
230 checker->CheckInclude(&a_, input_file, SourceFile("//random.h"), range, in TEST_F()
289 InputFile input_file(SourceFile("//some_file.cc")); in TEST_F()
[all …]
Dninja_action_target_writer_unittest.cc33 SourceFile source("//foo/bar.in"); in TEST()
48 target.action_values().set_script(SourceFile("//foo/script.py")); in TEST()
49 target.config_values().inputs().push_back(SourceFile("//foo/included.txt")); in TEST()
84 target.action_values().set_script(SourceFile("//foo/script.py")); in TEST()
85 target.config_values().inputs().push_back(SourceFile("//foo/included.txt")); in TEST()
130 target.action_values().set_script(SourceFile("//foo/script.py")); in TEST()
132 target.sources().push_back(SourceFile("//foo/source.txt")); in TEST()
133 target.config_values().inputs().push_back(SourceFile("//foo/included.txt")); in TEST()
177 bundle_data_dep.sources().push_back(SourceFile("//foo/some_data.txt")); in TEST()
195 target.sources().push_back(SourceFile("//foo/input1.txt")); in TEST()
[all …]
Drust_project_writer_unittest.cc35 SourceFile lib("//foo/lib.rs"); in TEST_F()
37 target.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
89 SourceFile tlib("//tortoise/lib.rs"); in TEST_F()
91 dep.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
100 SourceFile harelib("//hare/lib.rs"); in TEST_F()
102 target.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
175 SourceFile tlib("//tortoise/lib.rs"); in TEST_F()
177 dep.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
186 SourceFile alib("//achilles/lib.rs"); in TEST_F()
188 dep2.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
[all …]
Dbundle_file_rule.h15 class SourceFile; variable
23 const std::vector<SourceFile> sources,
33 const SourceFile& source_file,
34 SourceFile* expanded_source_file,
39 const SourceFile& source_file,
48 const std::vector<SourceFile>& sources() const { return sources_; } in sources()
52 std::vector<SourceFile> sources_;
Dpath_output_unittest.cc22 writer.WriteFile(out, SourceFile("//foo/bar.cc")); in TEST()
28 writer.WriteFile(out, SourceFile("//foo.cc")); in TEST()
34 writer.WriteFile(out, SourceFile("//out/Debug/foo.cc")); in TEST()
36 writer.WriteFile(out, SourceFile("//out/Debug/bar/baz.cc")); in TEST()
43 writer.WriteFile(out, SourceFile("/C:/foo/bar.cc")); in TEST()
50 writer.WriteFile(out, SourceFile("/foo/bar.cc")); in TEST()
64 writer.WriteFile(out, SourceFile("//foo/bar.cc")); in TEST()
70 writer.WriteFile(out, SourceFile("//foo.cc")); in TEST()
82 writer.WriteFile(out, SourceFile("//foo/foo bar$.cc")); in TEST()
88 writer.WriteFile(out, SourceFile("//foo/\"foo\".cc")); in TEST()
[all …]
Dbundle_data.cc27 SourceFile* asset_catalog) { in IsSourceFileFromAssetsCatalog()
54 *asset_catalog = SourceFile(std::move(asset_catalog_path)); in IsSourceFileFromAssetsCatalog()
81 UniqueVector<SourceFile> assets_catalog_sources; in OnTargetResolved()
85 for (const SourceFile& source_file : target->sources()) { in OnTargetResolved()
86 SourceFile assets_catalog; in OnTargetResolved()
133 for (const SourceFile& source_file : outputs_as_sources) in GetOutputFiles()
143 for (const SourceFile& source : file_rule.sources()) { in GetOutputsAsSourceFiles()
144 SourceFile expanded_source_file; in GetOutputsAsSourceFiles()
159 std::vector<SourceFile> code_signing_output_files; in GetOutputsAsSourceFiles()
173 SourceFile BundleData::GetCompiledAssetCatalogPath() const { in GetCompiledAssetCatalogPath()
[all …]
Dinput_file_manager.h45 std::function<bool(const SourceFile& file_name, InputFile* file)>;
59 const SourceFile& file_name,
68 const SourceFile& file_name,
86 void AddDynamicInput(const SourceFile& name,
113 explicit InputFileData(const SourceFile& file_name);
143 const SourceFile& name,
149 const SourceFile& name,
157 std::unordered_map<SourceFile, std::unique_ptr<InputFileData>>;
/third_party/grpc/src/csharp/Grpc.IntegrationTesting/
DSettings.StyleCop3 <SourceFile>Empty.cs</SourceFile>
4 <SourceFile>Control.cs</SourceFile>
5 <SourceFile>Messages.cs</SourceFile>
6 <SourceFile>Payloads.cs</SourceFile>
7 <SourceFile>Stats.cs</SourceFile>
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/DIA/
DDIAInjectedSource.cpp19 : SourceFile(DiaSourceFile) {} in DIAInjectedSource()
23 return (S_OK == SourceFile->get_crc(&Crc)) ? Crc : 0; in getCrc32()
28 return (S_OK == SourceFile->get_length(&Size)) ? Size : 0; in getCodeByteSize()
32 return invokeBstrMethod(*SourceFile, &IDiaInjectedSource::get_filename); in getFileName()
36 return invokeBstrMethod(*SourceFile, &IDiaInjectedSource::get_objectFilename); in getObjectFileName()
40 return invokeBstrMethod(*SourceFile, in getVirtualFileName()
46 if (S_OK != SourceFile->get_sourceCompression(&Compression)) in getCompression()
53 if (S_OK != SourceFile->get_source(0, &DataSize, nullptr)) in getCode()
57 if (S_OK != SourceFile->get_source(DataSize, &DataSize, Buffer.data())) in getCode()
/third_party/typescript/src/testRunner/unittests/
Dtransform.ts18 return (file: SourceFile) => file;
27 return (file: SourceFile) => visitNode(file, visitor);
40 return (file: SourceFile) => file;
50 return (node: SourceFile) => visitNode(node, visitor);
53 function createTaggedTemplateLiteral(): Transformer<SourceFile> {
63 … function transformSourceFile(sourceText: string, transformers: TransformerFactory<SourceFile>[]) {
209 return (sourceFile: SourceFile) => {
224 return (sourceFile: SourceFile): SourceFile => {
250 return (sourceFile: SourceFile): SourceFile => {
283 return (sourceFile: SourceFile): SourceFile => {
[all …]
/third_party/typescript/src/services/
DtextChanges.ts139 readonly sourceFile: SourceFile;
167 …function getAdjustedRange(sourceFile: SourceFile, startNode: Node, endNode: Node, options: Configu…
171 …function getAdjustedStartPosition(sourceFile: SourceFile, node: Node, options: ConfigurableStart) {
211 function getAdjustedEndPosition(sourceFile: SourceFile, node: Node, options: ConfigurableEnd) {
263 …private readonly newFiles: { readonly oldFile: SourceFile | undefined, readonly fileName: string, …
264 …| InterfaceDeclaration | ObjectLiteralExpression, readonly sourceFile: SourceFile }>(); // Set<Cla…
265 …private readonly deletedNodes: { readonly sourceFile: SourceFile, readonly node: Node | NodeArray<…
280 public pushRaw(sourceFile: SourceFile, change: FileTextChanges) {
292 public deleteRange(sourceFile: SourceFile, range: TextRange): void {
296 delete(sourceFile: SourceFile, node: Node | NodeArray<TypeParameterDeclaration>): void {
[all …]

12345678910>>...16