clang-tools  15.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 
16 namespace clang {
17 namespace tidy {
18 namespace utils {
19 namespace options {
20 
21 /// Parse a semicolon separated list of strings.
22 std::vector<StringRef> parseStringList(StringRef Option);
23 
24 std::vector<StringRef> parseListPair(StringRef L, StringRef R);
25 
26 /// Serialize a sequence of names that can be parsed by
27 /// ``parseStringList``.
28 std::string serializeStringList(ArrayRef<StringRef> Strings);
29 
30 } // namespace options
31 } // namespace utils
32 } // namespace tidy
33 } // namespace clang
34 
35 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
clang::tidy::utils::options::parseListPair
std::vector< StringRef > parseListPair(StringRef L, StringRef R)
Definition: OptionsUtils.cpp:38
Strings
std::vector< llvm::StringRef > Strings
Definition: Serialization.cpp:213
clang::tidy::utils::options::serializeStringList
std::string serializeStringList(ArrayRef< StringRef > Strings)
Serialize a sequence of names that can be parsed by parseStringList.
Definition: OptionsUtils.cpp:62
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition: ApplyReplacements.h:27
clang::tidy::utils::options::parseStringList
std::vector< StringRef > parseStringList(StringRef Option)
Parse a semicolon separated list of strings.
Definition: OptionsUtils.cpp:19