clang-tools  16.0.0git
Public Member Functions | List of all members
clang::tidy::CachedGlobList Class Referencefinal

A GlobList that caches search results, so that search is performed only once for the same query. More...

#include <GlobList.h>

Inheritance diagram for clang::tidy::CachedGlobList:
Inheritance graph
[legend]
Collaboration diagram for clang::tidy::CachedGlobList:
Collaboration graph
[legend]

Public Member Functions

bool contains (StringRef S) const override
 
 GlobList (StringRef Globs, bool KeepNegativeGlobs=true)
 Globs is a comma-separated list of globs (only the '*' metacharacter is supported) with an optional '-' prefix to denote exclusion. More...
 
- Public Member Functions inherited from clang::tidy::GlobList
virtual ~GlobList ()=default
 
 GlobList (StringRef Globs, bool KeepNegativeGlobs=true)
 Globs is a comma-separated list of globs (only the '*' metacharacter is supported) with an optional '-' prefix to denote exclusion. More...
 

Detailed Description

A GlobList that caches search results, so that search is performed only once for the same query.

Definition at line 54 of file GlobList.h.

Member Function Documentation

◆ contains()

bool clang::tidy::CachedGlobList::contains ( StringRef  S) const
overridevirtual
See also
GlobList::contains

Reimplemented from clang::tidy::GlobList.

Definition at line 67 of file GlobList.cpp.

References clang::tidy::GlobList::contains().

◆ GlobList()

clang::tidy::GlobList::GlobList

Globs is a comma-separated list of globs (only the '*' metacharacter is supported) with an optional '-' prefix to denote exclusion.

An empty Globs string is interpreted as one glob that matches an empty string.

KeepNegativeGlobs a bool flag indicating whether to keep negative globs from Globs or not. When false, negative globs are simply ignored.

Definition at line 46 of file GlobList.cpp.


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