Properly track where a build flag is declared
This allows us to generate an error when it is then set in an earlier location in the list. Bug: 346883187 Test: manual Change-Id: I1c8389ff0d5a16c080008967ab5e0b9b93101301
This commit is contained in:
@@ -135,9 +135,11 @@ func (src *FlagArtifact) Clone() *FlagArtifact {
|
|||||||
value := &rc_proto.Value{}
|
value := &rc_proto.Value{}
|
||||||
proto.Merge(value, src.Value)
|
proto.Merge(value, src.Value)
|
||||||
return &FlagArtifact{
|
return &FlagArtifact{
|
||||||
FlagDeclaration: src.FlagDeclaration,
|
FlagDeclaration: src.FlagDeclaration,
|
||||||
Traces: src.Traces,
|
Traces: src.Traces,
|
||||||
Value: value,
|
Value: value,
|
||||||
|
DeclarationIndex: src.DeclarationIndex,
|
||||||
|
Redacted: src.Redacted,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user