From 0478cfe438ca728690fb93bafe43fbe8e2b006b4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Jun 2022 14:30:31 +0200 Subject: Add note to parser::lookup_variable() description --- libbuild2/parser.hxx | 4 ++++ 1 file changed, 4 insertions(+) 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&); -- cgit v1.1