aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-06-14 14:30:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-06-14 14:30:31 +0200
commit0478cfe438ca728690fb93bafe43fbe8e2b006b4 (patch)
tree0a69ae850094eaa4d71a3b0063085a3345c47fc6
parentcedc661686dad6d82b0a96ea1490d36bc5ffee63 (diff)
Add note to parser::lookup_variable() description
-rw-r--r--libbuild2/parser.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx
index 185216b..a71d671 100644
--- a/libbuild2/parser.hxx
+++ b/libbuild2/parser.hxx
@@ -553,6 +553,10 @@ namespace build2
// example, $($x ? X : Y)) it will be empty (along with qual, which can
// only be non-empty for a computed variable).
//
+ // Note also that this function is (currently) not called by some lookup-
+ // like functions ($defined(), $config.origin()). But we should be careful
+ // if/when extending this and audit all the existing use-cases.
+ //
virtual lookup
lookup_variable (name&& qual, string&& name, const location&);