clang-tools 19.0.0git
Functions | Variables
clang::tidy::utils::options Namespace Reference

Functions

std::vector< StringRef > parseStringList (StringRef Option)
 Parse a semicolon separated list of strings.
 
std::vector< StringRef > parseListPair (StringRef L, StringRef R)
 
std::string serializeStringList (ArrayRef< StringRef > Strings)
 Serialize a sequence of names that can be parsed by parseStringList.
 

Variables

static const char StringsDelimiter [] = ";"
 

Function Documentation

◆ parseListPair()

std::vector< StringRef > clang::tidy::utils::options::parseListPair ( StringRef  L,
StringRef  R 
)

◆ parseStringList()

std::vector< StringRef > clang::tidy::utils::options::parseStringList ( StringRef  Option)

◆ serializeStringList()

std::string clang::tidy::utils::options::serializeStringList ( ArrayRef< StringRef >  Strings)

Serialize a sequence of names that can be parsed by parseStringList.

Definition at line 59 of file OptionsUtils.cpp.

References Strings, and StringsDelimiter.

Referenced by clang::tidy::abseil::StringFindStartswithCheck::storeOptions(), clang::tidy::abseil::StringFindStrContainsCheck::storeOptions(), clang::tidy::bugprone::AssertSideEffectCheck::storeOptions(), clang::tidy::bugprone::DanglingHandleCheck::storeOptions(), clang::tidy::bugprone::EasilySwappableParametersCheck::storeOptions(), clang::tidy::bugprone::EmptyCatchCheck::storeOptions(), clang::tidy::bugprone::NonZeroEnumToBoolConversionCheck::storeOptions(), clang::tidy::bugprone::OptionalValueConversionCheck::storeOptions(), clang::tidy::bugprone::ReservedIdentifierCheck::storeOptions(), clang::tidy::bugprone::SuspiciousStringviewDataUsageCheck::storeOptions(), clang::tidy::bugprone::UnusedLocalNonTrivialVariableCheck::storeOptions(), clang::tidy::misc::CoroutineHostileRAIICheck::storeOptions(), clang::tidy::misc::HeaderIncludeCycleCheck::storeOptions(), clang::tidy::misc::IncludeCleanerCheck::storeOptions(), clang::tidy::modernize::UseEmplaceCheck::storeOptions(), clang::tidy::modernize::UseNullptrCheck::storeOptions(), clang::tidy::modernize::UseStdFormatCheck::storeOptions(), clang::tidy::modernize::UseStdPrintCheck::storeOptions(), clang::tidy::objc::ForbiddenSubclassingCheck::storeOptions(), clang::tidy::performance::EnumSizeCheck::storeOptions(), clang::tidy::performance::FasterStringFindCheck::storeOptions(), clang::tidy::performance::ForRangeCopyCheck::storeOptions(), clang::tidy::performance::InefficientVectorOperationCheck::storeOptions(), clang::tidy::performance::NoAutomaticMoveCheck::storeOptions(), clang::tidy::performance::UnnecessaryCopyInitialization::storeOptions(), clang::tidy::performance::UnnecessaryValueParamCheck::storeOptions(), clang::tidy::readability::ContainerDataPointerCheck::storeOptions(), clang::tidy::readability::ContainerSizeEmptyCheck::storeOptions(), clang::tidy::readability::OperatorsRepresentationCheck::storeOptions(), clang::tidy::readability::SimplifySubscriptExprCheck::storeOptions(), clang::tidy::readability::StringCompareCheck::storeOptions(), clang::tidy::readability::SuspiciousCallArgumentCheck::storeOptions(), clang::tidy::readability::UppercaseLiteralSuffixCheck::storeOptions(), and clang::tidy::zircon::TemporaryObjectsCheck::storeOptions().

Variable Documentation

◆ StringsDelimiter

const char clang::tidy::utils::options::StringsDelimiter[] = ";"
static

Definition at line 14 of file OptionsUtils.cpp.

Referenced by parseListPair(), parseStringList(), and serializeStringList().