diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-20 14:00:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 08:35:29 +0200 |
commit | 82ee575b32bc57598cec5eaaa3a170ac36de9af0 (patch) | |
tree | 68274e597b5d378b0b0209b5dedf9451d2c940b1 /libbuild2/parser.hxx | |
parent | 7c8e544b520cc46c174a952e63ccd2d71002516d (diff) |
Add ability to notice variable expansions in pre-parse mode
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 7a44e65..bc01e08 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -489,6 +489,12 @@ namespace build2 // If qual is not empty, then its pair member should indicate the kind // of qualification: ':' -- target, '/' -- scope. // + // Note that this function is called even during pre-parse with the result + // unused. In this case a valid name will only be provided for variables + // with literal names (for example, $x, $(x)). For computed variables (for + // example, $($x ? X : Y)) it will be empty (along with qual, which can + // only be non-empty for a computed variable). + // virtual lookup lookup_variable (name&& qual, string&& name, const location&); |