aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/compile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-01 16:36:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commite3e597180487328a54721e2afb95e33ed853d586 (patch)
tree89d59f482d41eb37a90f97b0dd55c2e878e4800b /build2/cc/compile
parent1dd17210b76d544a04fc6b4f3c98162ae9718102 (diff)
Pass const scope& where modification should not happen
Diffstat (limited to 'build2/cc/compile')
-rw-r--r--build2/cc/compile10
1 files changed, 5 insertions, 5 deletions
diff --git a/build2/cc/compile b/build2/cc/compile
index 11b3919..b6fc7d6 100644
--- a/build2/cc/compile
+++ b/build2/cc/compile
@@ -40,10 +40,10 @@ namespace build2
private:
void
- append_lib_options (scope&, cstrings&, target&, lorder) const;
+ append_lib_options (const scope&, cstrings&, target&, lorder) const;
void
- hash_lib_options (scope&, sha256&, target&, lorder) const;
+ hash_lib_options (const scope&, sha256&, target&, lorder) const;
// Mapping of include prefixes (e.g., foo in <foo/bar>) for auto-
// generated headers to directories where they will be generated.
@@ -61,15 +61,15 @@ namespace build2
append_prefixes (prefix_map&, target&, const variable&) const;
void
- append_lib_prefixes (scope&, prefix_map&, target&, lorder) const;
+ append_lib_prefixes (const scope&, prefix_map&, target&, lorder) const;
prefix_map
- build_prefix_map (scope&, target&, lorder) const;
+ build_prefix_map (const scope&, target&, lorder) const;
// Reverse-lookup target type from extension.
//
const target_type*
- map_extension (scope&, const string&, const string&) const;
+ map_extension (const scope&, const string&, const string&) const;
// Header dependency injection.
//