llvm::StringSwitch::EndsWith

Match if the subject ends with S (case-sensitive) and bind Value.

Synopsis

Declared in <llvm/ADT/StringSwitch.h>

StringSwitch&
EndsWith(
    StringLiteral S,
    T Value);

Return Value

This switch for further chaining.

Parameters

NameDescription
SSuffix string to compare against the subject.
ValueResult to bind when the subject ends with S.