clang-tools  6.0.0
OptionsUtils.h
Go to the documentation of this file.
1 //===--- DanglingHandleCheck.h - clang-tidy----------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
12 
13 #include "../ClangTidy.h"
14 
15 namespace clang {
16 namespace tidy {
17 namespace utils {
18 namespace options {
19 
20 /// \brief Parse a semicolon separated list of strings.
21 std::vector<std::string> parseStringList(StringRef Option);
22 
23 /// \brief Serialize a sequence of names that can be parsed by
24 /// ``parseStringList``.
25 std::string serializeStringList(ArrayRef<std::string> Strings);
26 
27 } // namespace options
28 } // namespace utils
29 } // namespace tidy
30 } // namespace clang
31 
32 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
std::string serializeStringList(ArrayRef< std::string > Strings)
Serialize a sequence of names that can be parsed by parseStringList.
std::vector< std::string > parseStringList(StringRef Option)
Parse a semicolon separated list of strings.