1 //===--- DanglingHandleCheck.h - clang-tidy----------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
12 #include "clang/Basic/LLVM.h"
16 namespace clang::tidy::utils::options
{
18 /// Parse a semicolon separated list of strings.
19 std::vector
<StringRef
> parseStringList(StringRef Option
);
21 std::vector
<StringRef
> parseListPair(StringRef L
, StringRef R
);
23 /// Serialize a sequence of names that can be parsed by
24 /// ``parseStringList``.
25 std::string
serializeStringList(ArrayRef
<StringRef
> Strings
);
27 } // namespace clang::tidy::utils::options
29 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H