LLVM 17.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::GlobPattern Class Reference

#include "llvm/Support/GlobPattern.h"

Public Member Functions

bool match (StringRef S) const
bool isTrivialMatchAll () const

Static Public Member Functions

static Expected< GlobPatterncreate (StringRef Pat)

Detailed Description

Definition at line 29 of file GlobPattern.h.

Member Function Documentation

◆ create()

Expected< GlobPattern > GlobPattern::create ( StringRef  Pat)

◆ isTrivialMatchAll()

bool llvm::GlobPattern::isTrivialMatchAll ( ) const

Definition at line 36 of file GlobPattern.h.

References assert().

◆ match()

bool GlobPattern::match ( StringRef  S) const

Definition at line 142 of file GlobPattern.cpp.

References llvm::StringRef::endswith(), and llvm::StringRef::startswith().

The documentation for this class was generated from the following files: