llvm::convertToSnakeFromCamelCase

Convert a camel-case string to snake-case.

Synopsis

Declared in <llvm/ADT/StringExtras.h>

std::string
convertToSnakeFromCamelCase(StringRef input);

Description

Replaces all uppercase letters with '_' followed by the letter in lowercase, except if the uppercase letter is the first character of the string.

Return Value

The snake-case form of input.

Parameters

NameDescription
inputcamel-case text to convert