Go to the documentation of this file.
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GLOBLIST_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GLOBLIST_H
12 #include "clang/Basic/LLVM.h"
13 #include "llvm/ADT/SmallVector.h"
14 #include "llvm/ADT/StringMap.h"
15 #include "llvm/ADT/StringRef.h"
16 #include "llvm/Support/Regex.h"
38 GlobList(StringRef Globs,
bool KeepNegativeGlobs =
true);
42 virtual bool contains(StringRef S)
const;
49 SmallVector<GlobListItem, 0> Items;
59 bool contains(StringRef S)
const override;
62 mutable llvm::StringMap<bool> Cache;
68 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GLOBLIST_H
bool contains(StringRef S) const override
virtual bool contains(StringRef S) const
Returns true if the pattern matches S.
Read-only set of strings represented as a list of positive and negative globs.
GlobList(StringRef Globs, bool KeepNegativeGlobs=true)
Globs is a comma-separated list of globs (only the '*' metacharacter is supported) with an optional '...
virtual ~GlobList()=default
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
A GlobList that caches search results, so that search is performed only once for the same query.