#include "Marshallers.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Regex.h"
#include <optional>
#include <string>
#include "clang/Basic/AttrList.inc"
#include "clang/AST/OperationKinds.def"
#include "llvm/Frontend/OpenMP/OMP.inc"
#include "clang/Basic/TokenKinds.def"
Go to the source code of this file.
|
static std::optional< std::string > | getBestGuess (llvm::StringRef Search, llvm::ArrayRef< llvm::StringRef > Allowed, llvm::StringRef DropPrefix="", unsigned MaxEditDistance=3) |
static std::optional< llvm::Regex::RegexFlags > | getRegexFlag (llvm::StringRef Flag) |
static std::optional< llvm::StringRef > | getCloseRegexMatch (llvm::StringRef Flag) |
|
static constexpr std::pair< llvm::StringRef, llvm::Regex::RegexFlags > | RegexMap [] |
◆ ATTR
◆ CAST_OPERATION
#define CAST_OPERATION |
( |
| Name | ) |
|
◆ CLAUSE_CLASS
#define CLAUSE_CLASS |
( |
| Enum, |
|
|
| Str, |
|
|
| Class ) |
◆ CXX11_UNARY_EXPR_OR_TYPE_TRAIT
#define CXX11_UNARY_EXPR_OR_TYPE_TRAIT |
( |
| Spelling, |
|
|
| Name, |
|
|
| Key ) |
◆ GEN_CLANG_CLAUSE_CLASS
#define GEN_CLANG_CLAUSE_CLASS |
◆ UNARY_EXPR_OR_TYPE_TRAIT
#define UNARY_EXPR_OR_TYPE_TRAIT |
( |
| Spelling, |
|
|
| Name, |
|
|
| Key ) |
◆ getBestGuess()
std::optional< std::string > getBestGuess |
( |
llvm::StringRef | Search, |
|
|
llvm::ArrayRef< llvm::StringRef > | Allowed, |
|
|
llvm::StringRef | DropPrefix = "", |
|
|
unsigned | MaxEditDistance = 3 ) |
|
static |
◆ getCloseRegexMatch()
std::optional< llvm::StringRef > getCloseRegexMatch |
( |
llvm::StringRef | Flag | ) |
|
|
static |
◆ getRegexFlag()
std::optional< llvm::Regex::RegexFlags > getRegexFlag |
( |
llvm::StringRef | Flag | ) |
|
|
static |
◆ RegexMap
std::pair<llvm::StringRef, llvm::Regex::RegexFlags> RegexMap[] |
|
staticconstexpr |
Initial value:= {
{"NoFlags", llvm::Regex::RegexFlags::NoFlags},
{"IgnoreCase", llvm::Regex::RegexFlags::IgnoreCase},
{"Newline", llvm::Regex::RegexFlags::Newline},
{"BasicRegex", llvm::Regex::RegexFlags::BasicRegex},
}
Definition at line 113 of file Marshallers.cpp.
Referenced by getCloseRegexMatch(), and getRegexFlag().