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 "../ClangTidy.h" 13 14 namespace clang { 15 namespace tidy { 16 namespace utils { 17 namespace options { 18 19 /// Parse a semicolon separated list of strings. 20 std::vector<std::string> parseStringList(StringRef Option); 21 22 /// Serialize a sequence of names that can be parsed by 23 /// ``parseStringList``. 24 std::string serializeStringList(ArrayRef<std::string> Strings); 25 26 } // namespace options 27 } // namespace utils 28 } // namespace tidy 29 } // namespace clang 30 31 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H 32