MCPcopy Create free account
hub / github.com/build2/build2 / buildscript_target_pattern

Function buildscript_target_pattern

libbuild2/target.cxx:1929–1954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1927 }
1928
1929 static bool
1930 buildscript_target_pattern (const target_type&,
1931 const scope&,
1932 string& v,
1933 optional<string>& e,
1934 const location& l,
1935 bool r)
1936 {
1937 if (r)
1938 {
1939 assert (e);
1940 e = nullopt;
1941 }
1942 else
1943 {
1944 e = target::split_name (v, l);
1945
1946 if (!e && v != "buildscript")
1947 {
1948 e = "buildscript";
1949 return true;
1950 }
1951 }
1952
1953 return false;
1954 }
1955
1956 const target_type buildscript::static_type
1957 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected