LLVM  14.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)
static

Definition at line 108 of file GlobPattern.cpp.

References hasWildcard(), S, scan(), and llvm::Expected< T >::takeError().

◆ isTrivialMatchAll()

bool llvm::GlobPattern::isTrivialMatchAll ( ) const
inline

Definition at line 36 of file GlobPattern.h.

References assert().

◆ match()

bool GlobPattern::match ( StringRef  S) const

Definition at line 143 of file GlobPattern.cpp.

References S.


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