Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/build2/build2
/ functions
Functions
1,458 in github.com/build2/build2
⨍
Functions
1,458
◇
Types & classes
150
↓ 1,134 callers
Method
empty
libbuild2/cc/guess.cxx:825
↓ 116 callers
Function
get_location
libbuild2/cc/lexer.cxx:34
↓ 103 callers
Method
next
Read next substring. Return true if the substring has been read or false if it should be called again once the stream has more data to read. Also retu
libbuild2/script/run.cxx:1045
↓ 86 callers
Function
parse
old-tests/parser/driver.cxx:140
↓ 81 callers
Function
append_options
libbuild2/utility.cxx:696
↓ 81 callers
Function
find
Look for the substring forwards in the [p, n) range.
libbuild2/functions-string.cxx:13
↓ 64 callers
Function
print_diag
Note: these can't be inline since need the target class definition.
libbuild2/diagnostics.cxx:382
↓ 62 callers
Function
exists
Check if the standard/alternative file/directory exists, returning empty path if it does not.
libbuild2/file.cxx:77
↓ 61 callers
Function
merge
Replace matched parts of list elements using the format string and concatenate the transformed elements. See merge() overloads (below) for details.
libbuild2/functions-regex.cxx:564
↓ 59 callers
Function
lex
old-tests/lexer/driver.cxx:122
↓ 49 callers
Method
data
libbuild2/context.cxx:58
↓ 43 callers
Function
load_module
@@ TODO: This is a bit of a fuzzy mess: - The .build.loaded variable check: it's not clear if init_module() already has this semantics? - Why do we
libbuild2/module.cxx:1023
↓ 43 callers
Function
print_process
print_process()
libbuild2/diagnostics.cxx:536
↓ 41 callers
Function
relative
libbuild2/utility.cxx:183
↓ 41 callers
Function
search
Search for a program first in paths if not NULL and then using the standard path search semantics. Use var to suggest an override if the search fails.
libbuild2/bin/guess.cxx:53
↓ 37 callers
Function
to_string
libbuild2/json.cxx:18
↓ 35 callers
Function
parse_names
libbuild2/types-parsers.cxx:55
↓ 33 callers
Function
f
old-tests/amalgam/libtest/test.cxx:1
↓ 31 callers
Function
match
Match value of an arbitrary type against the regular expression. See match() overloads (below) for details.
libbuild2/functions-regex.cxx:53
↓ 30 callers
Method
empty
libbuild2/bin/guess.cxx:29
↓ 29 callers
Function
to_string
libbuild2/cc/guess.cxx:80
↓ 26 callers
Function
find_option_prefixes
libbuild2/utility.cxx:845
↓ 24 callers
Function
mtime
libbuild2/filesystem.cxx:38
↓ 24 callers
Method
skip
Read out and skip the data available in the stream. Return true on eof.
libbuild2/script/run.cxx:1056
↓ 23 callers
Function
filter
Return true if this entry should be written to the database with the specified name.
libbuild2/cc/compiledb.cxx:39
↓ 22 callers
Function
load_builtin_module
libbuild2/module.cxx:37
↓ 20 callers
Function
throw_invalid_argument
Throw invalid_argument for an invalid simple value.
libbuild2/variable.cxx:440
↓ 19 callers
Function
find_option_prefix
libbuild2/utility.cxx:815
↓ 19 callers
Function
set_dir
libbuild2/install/init.cxx:214
↓ 18 callers
Function
chunk_names
old-tests/parser/driver.cxx:28
↓ 17 callers
Function
compare
libbuild2/variable.cxx:261
↓ 17 callers
Function
to_stream
libbuild2/target.cxx:896
↓ 15 callers
Function
diag_do
diag_do(), etc.
libbuild2/diagnostics.cxx:947
↓ 15 callers
Function
path_match
Return true if a path matches the pattern. See path_match() overloads (below) for details.
libbuild2/functions-path.cxx:121
↓ 15 callers
Function
run_start
libbuild2/utility.cxx:280
↓ 14 callers
Function
escape
In pkg-config backslashes, spaces, etc are escaped with a backslash. @@ TODO: handle empty values (save as ''?) Note: may contain variable expansion
libbuild2/cc/pkgconfig.cxx:41
↓ 14 callers
Function
file_exists
libbuild2/functions-filesystem.cxx:116
↓ 14 callers
Function
typify
libbuild2/variable.cxx:332
↓ 13 callers
Function
digit
Return true if the string contains only a single digit characters (used to detect the special $N variables).
libbuild2/test/script/parser.cxx:24
↓ 13 callers
Function
dump
libbuild2/dump.cxx:1481
↓ 13 callers
Function
entry_exists
libbuild2/filesystem.cxx:245
↓ 13 callers
Function
link_member
libbuild2/bin/utility.cxx:47
↓ 12 callers
Function
init_module
libbuild2/module.cxx:904
↓ 12 callers
Function
path_search
Return paths of filesystem entries that match the pattern. See path_search() overloads (below) for details.
libbuild2/functions-filesystem.cxx:19
↓ 12 callers
Function
run_search
libbuild2/utility.cxx:237
↓ 12 callers
Function
search_existing
libbuild2/algorithm.cxx:36
↓ 12 callers
Function
untypify
libbuild2/variable.cxx:385
↓ 11 callers
Function
diag_path
libbuild2/script/run.cxx:36
↓ 11 callers
Function
find_options
libbuild2/utility.cxx:780
↓ 11 callers
Function
is_src_root
libbuild2/file.cxx:147
↓ 11 callers
Function
parse_regex
Parse a regular expression. Throw invalid_argument if it is not valid. Note: also used in functions-process.cxx (thus not static).
libbuild2/functions-regex.cxx:33
↓ 11 callers
Function
print_dir
libbuild2/script/run.cxx:3747
↓ 11 callers
Function
read
If the callback function is not specified just read out and skip all the input data.
libbuild2/script/run.cxx:1471
↓ 11 callers
Function
rmdir_r
libbuild2/filesystem.cxx:185
↓ 11 callers
Function
save_environment
Custom save function for config.config.environment. It tries to optimize the storage in subprojects by appending the difference (compared to the amal
libbuild2/config/init.cxx:42
↓ 11 callers
Function
skip
libbuild2/script/run.cxx:1717
↓ 11 callers
Function
to_string
variable_visibility
libbuild2/variable.cxx:24
↓ 10 callers
Function
at_throw
libbuild2/json.cxx:84
↓ 10 callers
Function
find_option
libbuild2/utility.cxx:754
↓ 10 callers
Function
run
libbuild2/script/run.cxx:3461
↓ 10 callers
Function
to_target_name
libbuild2/functions-name.cxx:34
↓ 9 callers
Function
apply
Replace matched parts of list elements using the format string. See apply() overloads (below) for details.
libbuild2/functions-regex.cxx:379
↓ 9 callers
Function
avail_on_failure
Return true if the script temporary directory is not created yet (and so cannot contain any path), a path is not under the temporary directory or this
libbuild2/script/run.cxx:235
↓ 9 callers
Function
bootstrapped
libbuild2/file.cxx:1487
↓ 9 callers
Function
diag_doing
libbuild2/diagnostics.cxx:992
↓ 9 callers
Function
dump_variables
libbuild2/dump.cxx:512
↓ 9 callers
Function
pattern
Try to derive the toolchain pattern. The s argument is the stem to look for in the leaf of the path. The ls and rs arguments are the left/right separ
libbuild2/cc/guess.cxx:1414
↓ 9 callers
Function
run_wait
libbuild2/utility.cxx:322
↓ 9 callers
Function
term_pipe
Terminate the pipeline processes starting from the specified one and up to the leftmost one and then kill those which didn't terminate after 2 seconds
libbuild2/script/run.cxx:1381
↓ 9 callers
Function
to_stream
libbuild2/script/script.cxx:292
↓ 9 callers
Function
transform
Transform string according to here-* redirect modifiers from the {/} set.
libbuild2/script/run.cxx:193
↓ 8 callers
Function
mkdir
libbuild2/filesystem.cxx:52
↓ 8 callers
Function
source_once
libbuild2/file.cxx:346
↓ 8 callers
Function
to_json_value
libbuild2/variable.cxx:1544
↓ 7 callers
Function
bootstrap_post
libbuild2/file.cxx:1463
↓ 7 callers
Function
cmd_path
Return the command program path for diagnostics.
libbuild2/script/run.cxx:999
↓ 7 callers
Function
filter_entry
libbuild2/install/utility.cxx:39
↓ 7 callers
Function
import_suggest
libbuild2/file.cxx:2417
↓ 7 callers
Method
leave
libbuild2/test/script/parser.test.cxx:170
↓ 7 callers
Function
parse_metadata
libbuild2/file.cxx:2398
↓ 7 callers
Function
path_perms
libbuild2/filesystem.cxx:334
↓ 7 callers
Function
to_stream_quoted
libbuild2/utility.cxx:1099
↓ 6 callers
Function
apply_impl
libbuild2/algorithm.cxx:1011
↓ 6 callers
Function
bootstrap_pre
libbuild2/file.cxx:1439
↓ 6 callers
Function
bootstrap_src
libbuild2/file.cxx:1051
↓ 6 callers
Function
create_root
libbuild2/file.cxx:442
↓ 6 callers
Function
diag_relative
libbuild2/utility.cxx:191
↓ 6 callers
Function
empty
libbuild2/filesystem.cxx:258
↓ 6 callers
Function
extract_variable
libbuild2/file.cxx:782
↓ 6 callers
Function
forwarded
Return true if the inner/outer project (identified by out/src_root) of the 'origin' project (identified by orig) should be forwarded.
libbuild2/file.cxx:1499
↓ 6 callers
Function
init_diag
libbuild2/diagnostics.cxx:37
↓ 6 callers
Function
match_impl_impl
If step is true then perform only one step of the match/apply sequence. If try_match is true, then indicate whether there is a rule match with the fi
libbuild2/algorithm.cxx:1213
↓ 6 callers
Function
non_empty
Check if a path is not empty, the referenced file exists and is not empty.
libbuild2/script/run.cxx:100
↓ 6 callers
Function
path_symlink
Return true if the path exist and is a symlink.
libbuild2/adhoc-rule-buildscript.cxx:272
↓ 6 callers
Function
perform_clean_extra
libbuild2/algorithm.cxx:4652
↓ 6 callers
Function
perform_post_operation_callbacks
libbuild2/operation.cxx:1234
↓ 6 callers
Function
posix_representation
libbuild2/functions-path.cxx:180
↓ 6 callers
Function
posix_string
libbuild2/functions-path.cxx:161
↓ 6 callers
Function
resolve_dir
libbuild2/install/rule.cxx:888
↓ 6 callers
Function
search_existing_target
libbuild2/search.cxx:17
next →
1–100 of 1,458, ranked by callers