Skip to content

Commit fa3811d

Browse files
committed
Minor updates
1 parent e3fb12c commit fa3811d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

buildcc/lib/target/include/target/common/target_state.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,20 @@
2222
namespace buildcc::base {
2323

2424
// TODO, Seperate TargetState into lock_ and other internal boolean variables
25+
// NOTE, This is because apart from lock_ every other parameter is updated
26+
// during `Target::Build`
27+
// TargetInfo does not have a `Build` method, it is only meant to hold
28+
// information
2529
struct TargetState {
2630
void SetSourceState(TargetFileExt file_extension);
2731
void SetPch();
2832
void SetLock();
2933

3034
void ExpectsUnlock() const;
3135
void ExpectsLock() const;
36+
// TODO, IsLocked
3237

3338
bool ContainsPch() const { return contains_pch_; }
34-
// TODO, ContainsAsm
35-
// TODO, ContainsC
36-
// TODO, ContainsCpp
37-
38-
// TODO, IsLocked
39-
// TODO, IsBuilt
4039

4140
// TODO, Make these private getters
4241
bool contains_asm{false};

buildcc/lib/target/include/target/target.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ class Target : public BuilderInterface, public TargetInfo {
155155
// Fbs
156156
bool Store() override;
157157

158-
// Callbacks
158+
// Tasks
159+
void TaskDeps();
160+
161+
// Callbacks for unit tests
159162
void SourceRemoved();
160163
void SourceAdded();
161164
void SourceUpdated();
@@ -167,15 +170,13 @@ class Target : public BuilderInterface, public TargetInfo {
167170
void FlagChanged();
168171
void ExternalLibChanged();
169172

170-
void TaskDeps();
171-
172173
private:
173174
std::string name_;
174175
TargetType type_;
175176
const Toolchain &toolchain_;
176177
internal::TargetLoader loader_;
177178

178-
// Friend
179+
// Friend classes
179180
CompilePch compile_pch_;
180181
CompileObject compile_object_;
181182
LinkTarget link_target_;

0 commit comments

Comments
 (0)