lpino | b379f65 | 2017-04-07 12:05:09 +0000 | [diff] [blame] | 1 | // Copyright 2017 The Bazel Authors. All rights reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
lpino | 233b72d | 2017-07-05 11:08:40 -0400 | [diff] [blame] | 15 | #ifndef BAZEL_SRC_MAIN_CPP_OPTION_PROCESSOR_INTERNAL_H_ |
| 16 | #define BAZEL_SRC_MAIN_CPP_OPTION_PROCESSOR_INTERNAL_H_ |
lpino | b379f65 | 2017-04-07 12:05:09 +0000 | [diff] [blame] | 17 | |
| 18 | #include <algorithm> |
| 19 | |
| 20 | #include "src/main/cpp/util/file.h" |
| 21 | |
| 22 | namespace blaze { |
| 23 | namespace internal { |
| 24 | |
lpino | 233b72d | 2017-07-05 11:08:40 -0400 | [diff] [blame] | 25 | // Returns the deduped set of bazelrc paths (with respect to its canonical form) |
lpino | b379f65 | 2017-04-07 12:05:09 +0000 | [diff] [blame] | 26 | // preserving the original order. The paths that cannot be resolved are |
| 27 | // omitted. |
| 28 | std::vector<std::string> DedupeBlazercPaths( |
| 29 | const std::vector<std::string>& paths); |
| 30 | |
| 31 | } // namespace internal |
| 32 | } // namespace blaze |
| 33 | |
lpino | 233b72d | 2017-07-05 11:08:40 -0400 | [diff] [blame] | 34 | #endif // BAZEL_SRC_MAIN_CPP_OPTION_PROCESSOR_INTERNAL_H_ |