[AMDGPU][AsmParser][NFC] Translate parsed MIMG instructions to MCInsts automatically.
[llvm-project.git] / clang-tools-extra / clang-tidy / utils / OptionsUtils.h
blobf15c07fe47fadeadb90121851c4a08c7f1e4a93d
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 //===----------------------------------------------------------------------===//
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"
13 #include <string>
14 #include <vector>
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