OptionsUtils.h 1.0 KB

1234567891011121314151617181920212223242526272829
  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. #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
  9. #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H
  10. #include "clang/Basic/LLVM.h"
  11. #include <string>
  12. #include <vector>
  13. namespace clang::tidy::utils::options {
  14. /// Parse a semicolon separated list of strings.
  15. std::vector<StringRef> parseStringList(StringRef Option);
  16. std::vector<StringRef> parseListPair(StringRef L, StringRef R);
  17. /// Serialize a sequence of names that can be parsed by
  18. /// ``parseStringList``.
  19. std::string serializeStringList(ArrayRef<StringRef> Strings);
  20. } // namespace clang::tidy::utils::options
  21. #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_OPTIONUTILS_H