blob: 301d2be4fa42f135ab83e50891177a387be3e8a8 [file] [log] [blame]
lpinob379f652017-04-07 12:05:09 +00001// 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
lpino233b72d2017-07-05 11:08:40 -040015#ifndef BAZEL_SRC_MAIN_CPP_OPTION_PROCESSOR_INTERNAL_H_
16#define BAZEL_SRC_MAIN_CPP_OPTION_PROCESSOR_INTERNAL_H_
lpinob379f652017-04-07 12:05:09 +000017
18#include <algorithm>
19
20#include "src/main/cpp/util/file.h"
21
22namespace blaze {
23namespace internal {
24
lpino233b72d2017-07-05 11:08:40 -040025// Returns the deduped set of bazelrc paths (with respect to its canonical form)
lpinob379f652017-04-07 12:05:09 +000026// preserving the original order. The paths that cannot be resolved are
27// omitted.
28std::vector<std::string> DedupeBlazercPaths(
29 const std::vector<std::string>& paths);
30
31} // namespace internal
32} // namespace blaze
33
lpino233b72d2017-07-05 11:08:40 -040034#endif // BAZEL_SRC_MAIN_CPP_OPTION_PROCESSOR_INTERNAL_H_