Home
last modified time | relevance | path

Searched refs:SourceFile (Results 1 - 25 of 161) sorted by relevance

1234567

/third_party/gn/src/gn/
H A Dsource_file_unittest.cc9 // The SourceFile object should normalize the input passed to the constructor.
12 TEST(SourceFile, Normalize) { in TEST()
13 SourceFile a("//foo/../bar.cc"); in TEST()
17 SourceFile b(std::move(b_str)); in TEST()
22 TEST(SourceFile, GetType) { in TEST()
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 in TEST()
[all...]
H A 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 in GetSourceFileType()
125 SourceFile::SourceFile(const std::string& value) SourceFile() function in SourceFile
128 SourceFile::SourceFile(std::string&& value) SourceFile() function in SourceFile
131 SourceFile::SourceFile(StringAtom value) : value_(value) {} SourceFile() function in SourceFile
[all...]
H A Dninja_rust_binary_target_writer_unittest.cc26 target.sources().push_back(SourceFile("//foo/input1.rs")); in TEST_F()
27 target.sources().push_back(SourceFile("//foo/main.rs")); in TEST_F()
28 target.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
40 SourceFile main("//foo/main.rs"); in TEST_F()
41 target.sources().push_back(SourceFile("//foo/input3.rs")); in TEST_F()
43 target.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
96 SourceFile bazlib("//baz/lib.rs"); in TEST_F()
97 private_rlib.sources().push_back(SourceFile("//baz/privatelib.rs")); in TEST_F()
99 private_rlib.source_types_used().Set(SourceFile::SOURCE_RS); in TEST_F()
138 SourceFile farli in TEST_F()
[all...]
H A Dsource_file.h24 class SourceFile { class
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 { in operator ==()
103 bool operator!=(const SourceFile& other) const { return !operator==(other); } in operator !=()
104 bool operator<(const SourceFile& other) const { in operator <()
109 bool operator()(const SourceFile
[all...]
H A 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 in TEST_F()
[all...]
H A Dsubstitution_writer.h18 class SourceFile;
74 std::vector<SourceFile>* output);
82 // as either a string, a SourceFile or an OutputFile. If the result is
83 // expected to be a SourceFile or an OutputFile, this will CHECK if the
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>* outpu
[all...]
H A 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("//fo in TEST()
[all...]
H A Dbundle_data_unittest.cc9 SourceFile source_file; in TEST()
10 SourceFile catalog_dir; in TEST()
15 .source_file = SourceFile("//my/bundle/foo.xcassets/my/file"), in TEST()
16 .catalog_dir = SourceFile("//my/bundle/foo.xcassets"), in TEST()
19 .source_file = SourceFile( in TEST()
21 .catalog_dir = SourceFile("//my/bundle/foo.xcassets"), in TEST()
24 .source_file = SourceFile("//my/bundle/my/file"), in TEST()
25 .catalog_dir = SourceFile(), in TEST()
30 const SourceFile assets_catalog_dir = in TEST()
H A Dbinary_target_generator.cc99 const SourceFile::Type source_type = source.GetType(); in FillSources()
101 case SourceFile::SOURCE_CPP: in FillSources()
102 case SourceFile::SOURCE_MODULEMAP: in FillSources()
103 case SourceFile::SOURCE_H: in FillSources()
104 case SourceFile::SOURCE_C: in FillSources()
105 case SourceFile::SOURCE_M: in FillSources()
106 case SourceFile::SOURCE_MM: in FillSources()
107 case SourceFile::SOURCE_S: in FillSources()
108 case SourceFile::SOURCE_ASM: in FillSources()
109 case SourceFile in FillSources()
[all...]
H A 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()
35 SourceFile("//foo/Foo.xcassets/file/with/no/known/pattern")); in TEST()
37 SourceFile("//fo in TEST()
[all...]
H A Dbundle_data.cc20 SourceFile BundleData::GetAssetsCatalogDirectory(const SourceFile& source) { in GetAssetsCatalogDirectory()
21 SourceFile assets_catalog_dir; in GetAssetsCatalogDirectory()
25 assets_catalog_dir = SourceFile(path); in GetAssetsCatalogDirectory()
66 UniqueVector<SourceFile> assets_catalog_sources; in OnTargetResolved()
70 for (const SourceFile& source_file : target->sources()) { in OnTargetResolved()
71 SourceFile assets_catalog_dir = GetAssetsCatalogDirectory(source_file); in OnTargetResolved()
118 for (const SourceFile& source_file : outputs_as_sources) in GetOutputFiles()
128 for (const SourceFile& source : file_rule.sources()) { in GetOutputsAsSourceFiles()
129 SourceFile expanded_source_fil in GetOutputsAsSourceFiles()
[all...]
H A 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()
125 target.sources().push_back(SourceFile("//foo/source1.cc")); in TEST_F()
126 target.config_values().inputs().push_back(SourceFile("//foo/input1")); in TEST_F()
127 target.config_values().inputs().push_back(SourceFile("//foo/input2")); in TEST_F()
128 target.source_types_used().Set(SourceFile in TEST_F()
[all...]
H A 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("/ in TEST()
[all...]
H A Dbundle_data.h28 using SourceFiles = std::vector<SourceFile>;
35 // Return the assets catalog directory path from `source` as a SourceFile,
47 static SourceFile GetAssetsCatalogDirectory(const SourceFile& source);
66 // Returns the list of outputs as SourceFile.
74 SourceFile GetCompiledAssetCatalogPath() const;
81 // Note that this is a SourceFile instead of a SourceDir. This is because
86 SourceFile GetBundleRootDirOutput(const Settings* settings) const;
140 void set_partial_info_plist(const SourceFile& partial_info_plist) { in set_partial_info_plist()
143 const SourceFile in set_partial_info_plist()
[all...]
H A 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()
113 return [this](const SourceFile in GetSyncCallback()
[all...]
H A 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 in TEST_F()
[all...]
H A 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_fil in TEST_F()
[all...]
H A 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()
184 target.action_values().set_script(SourceFile("//foo/script.py")); in TEST()
186 target.sources().push_back(SourceFile("//fo in TEST()
[all...]
H A 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_;
H A Dbundle_file_rule.h15 class SourceFile;
23 const std::vector<SourceFile> sources,
29 // as either a SourceFile or an OutputFile.
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_;
H A Dscheduler.h65 void AddWrittenFile(const SourceFile& file);
73 void AddGeneratedFile(const SourceFile& entry);
74 bool IsFileGeneratedByTarget(const SourceFile& file) const;
91 void AddUnknownGeneratedInput(const Target* target, const SourceFile& file);
92 std::multimap<SourceFile, const Target*> GetUnknownGeneratedInputs() const;
145 std::vector<SourceFile> written_files_;
147 std::multimap<SourceFile, const Target*> unknown_generated_inputs_;
148 std::map<SourceFile, bool> generated_files_;
H A 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("//fo in TEST()
[all...]
H A Dloader.h21 class SourceFile;
38 virtual void Load(const SourceFile& file,
54 virtual SourceFile BuildFileForLabel(const Label& label) const = 0;
77 const SourceFile&,
84 void Load(const SourceFile& file,
90 SourceFile BuildFileForLabel(const Label& label) const override;
128 const SourceFile& file);
135 const SourceFile& file_name,
161 const SourceFile& file_name,
H A Dheader_checker.cc157 const SourceFile::Type type = file.first.GetType(); in RunCheckOverFiles()
158 if (type != SourceFile::SOURCE_CPP && type != SourceFile::SOURCE_H && in RunCheckOverFiles()
159 type != SourceFile::SOURCE_C && type != SourceFile::SOURCE_M && in RunCheckOverFiles()
160 type != SourceFile::SOURCE_MM && type != SourceFile::SOURCE_RC) in RunCheckOverFiles()
190 void HeaderChecker::DoWork(const Target* target, const SourceFile& file) { in DoWork()
209 std::map<SourceFile, PublicGeneratedPair> files_to_public; in AddTargetToFileMap()
230 const SourceFile in AddTargetToFileMap()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/DIA/
H A 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()

Completed in 10 milliseconds

1234567