HomeSort by relevance Sort by last modified time
    Searched defs:StringSwitch (Results 1 - 3 of 3) sorted by null

  /external/llvm/include/llvm/ADT/
StringSwitch.h 1 //===--- StringSwitch.h - Switch-on-literal-string Construct --------------===/
9 // This file implements the StringSwitch template, which mimics a switch()
24 /// The StringSwitch class is a simple form of a switch() statement that
31 /// Color color = StringSwitch<Color>(argv[i])
42 class StringSwitch {
51 explicit StringSwitch(StringRef Str)
55 StringSwitch& Case(const char (&S)[N], const T& Value) {
65 StringSwitch& EndsWith(const char (&S)[N], const T &Value) {
75 StringSwitch& StartsWith(const char (&S)[N], const T &Value) {
85 StringSwitch& Cases(const char (&S0)[N0], const char (&S1)[N1]
    [all...]
  /external/clang/test/SemaTemplate/
instantiate-non-type-template-parameter.cpp 5 class StringSwitch {
13 (void)StringSwitch<int>();
  /external/clang/test/Index/
recursive-cxx-member-calls.cpp 83 template < typename T, typename R = T > class StringSwitch {
87 explicit StringSwitch(StringRef Str) : Str(Str), Result(0) {}
88 template < unsigned N > StringSwitch & Case(const char (&S)[N],
105 return llvm::StringSwitch < AttributeList::Kind > (AttrName)
    [all...]

Completed in 28 milliseconds