clang-tools 20.0.0git
OptionsUtils.h
Go to the documentation of this file.
1//===--- DanglingHandleCheck.h - clang-tidy----------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
11
12#include "clang/Basic/LLVM.h"
13#include <string>
14#include <vector>
15
17
18/// Parse a semicolon separated list of strings.
19std::vector<StringRef> parseStringList(StringRef Option);
20
21std::vector<StringRef> parseListPair(StringRef L, StringRef R);
22
23/// Serialize a sequence of names that can be parsed by
24/// ``parseStringList``.
25std::string serializeStringList(ArrayRef<StringRef> Strings);
26
27} // namespace clang::tidy::utils::options
28
29#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
std::vector< llvm::StringRef > Strings
std::string serializeStringList(ArrayRef< StringRef > Strings)
Serialize a sequence of names that can be parsed by parseStringList.
std::vector< StringRef > parseListPair(StringRef L, StringRef R)
std::vector< StringRef > parseStringList(StringRef Option)
Parse a semicolon separated list of strings.