@@ -42,52 +42,71 @@ class TargetLoader : public LoaderInterface {
4242 bool Load () override ;
4343
4444 // Getters
45- const path_unordered_set &GetLoadedSources () const { return loaded_sources_; }
46- const path_unordered_set &GetLoadedHeaders () const { return loaded_headers_; }
47- const path_unordered_set &GetLoadedPchs () const { return loaded_pchs_; }
48- const path_unordered_set &GetLoadedLibDeps () const {
45+ const path_unordered_set &GetLoadedSources () const noexcept {
46+ return loaded_sources_;
47+ }
48+ const path_unordered_set &GetLoadedHeaders () const noexcept {
49+ return loaded_headers_;
50+ }
51+ const path_unordered_set &GetLoadedPchs () const noexcept {
52+ return loaded_pchs_;
53+ }
54+ const path_unordered_set &GetLoadedLibDeps () const noexcept {
4955 return loaded_lib_deps_;
5056 }
51- const std::unordered_set<std::string> &GetLoadedExternalLibDeps () const {
57+ const std::unordered_set<std::string> &
58+ GetLoadedExternalLibDeps () const noexcept {
5259 return loaded_external_lib_dirs_;
5360 }
5461
55- const fs_unordered_set &GetLoadedIncludeDirs () const {
62+ const fs_unordered_set &GetLoadedIncludeDirs () const noexcept {
5663 return loaded_include_dirs_;
5764 }
58- const fs_unordered_set &GetLoadedLibDirs () const { return loaded_lib_dirs_; }
59- const std::unordered_set<std::string> &GetLoadedPreprocessorFlags () const {
65+ const fs_unordered_set &GetLoadedLibDirs () const noexcept {
66+ return loaded_lib_dirs_;
67+ }
68+ const std::unordered_set<std::string> &
69+ GetLoadedPreprocessorFlags () const noexcept {
6070 return loaded_preprocessor_flags_;
6171 }
62- const std::unordered_set<std::string> &GetLoadedCommonCompileFlags () const {
72+ const std::unordered_set<std::string> &
73+ GetLoadedCommonCompileFlags () const noexcept {
6374 return loaded_common_compile_flags_;
6475 }
65- const std::unordered_set<std::string> &GetLoadedPchCompileFlags () const {
76+ const std::unordered_set<std::string> &
77+ GetLoadedPchCompileFlags () const noexcept {
6678 return loaded_pch_compile_flags_;
6779 }
68- const std::unordered_set<std::string> &GetLoadedPchObjectFlags () const {
80+ const std::unordered_set<std::string> &
81+ GetLoadedPchObjectFlags () const noexcept {
6982 return loaded_pch_object_flags_;
7083 }
71- const std::unordered_set<std::string> &GetLoadedAsmCompileFlags () const {
84+ const std::unordered_set<std::string> &
85+ GetLoadedAsmCompileFlags () const noexcept {
7286 return loaded_asm_compile_flags_;
7387 }
74- const std::unordered_set<std::string> &GetLoadedCCompileFlags () const {
88+ const std::unordered_set<std::string> &
89+ GetLoadedCCompileFlags () const noexcept {
7590 return loaded_c_compile_flags_;
7691 }
77- const std::unordered_set<std::string> &GetLoadedCppCompileFlags () const {
92+ const std::unordered_set<std::string> &
93+ GetLoadedCppCompileFlags () const noexcept {
7894 return loaded_cpp_compile_flags_;
7995 }
80- const std::unordered_set<std::string> &GetLoadedLinkFlags () const {
96+ const std::unordered_set<std::string> &GetLoadedLinkFlags () const noexcept {
8197 return loaded_link_flags_;
8298 }
8399
84- const path_unordered_set &GetLoadedCompileDependencies () const {
100+ const path_unordered_set &GetLoadedCompileDependencies () const noexcept {
85101 return loaded_compile_dependencies_;
86102 }
87- const path_unordered_set &GetLoadedLinkDependencies () const {
103+ const path_unordered_set &GetLoadedLinkDependencies () const noexcept {
88104 return loaded_link_dependencies_;
89105 }
90106
107+ bool GetLoadedPchCompiled () const noexcept { return loaded_pch_compiled_; }
108+ bool GetLoadedTargetLinked () const noexcept { return loaded_target_linked_; }
109+
91110private:
92111 void Initialize ();
93112
@@ -116,6 +135,9 @@ class TargetLoader : public LoaderInterface {
116135
117136 path_unordered_set loaded_compile_dependencies_;
118137 path_unordered_set loaded_link_dependencies_;
138+
139+ bool loaded_pch_compiled_{false };
140+ bool loaded_target_linked_{false };
119141};
120142
121143} // namespace buildcc::internal
0 commit comments