LLVM 20.0.0git
|
#include "TGLexer.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Config/config.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/TableGen/Error.h"
#include <algorithm>
#include <cerrno>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
Go to the source code of this file.
Functions | |
static bool | isValidIDChar (char C, bool First) |
Returns true if C is a valid character in an identifier. | |
static const char * | lexMacroName (StringRef Str) |
Variables | |
constexpr PreprocessorDir | PreprocessorDirs [] |
Returns true if C
is a valid character in an identifier.
If First
is true, returns true if C
is a valid first character of an identifier, else returns true if C
is a valid non-first character of an identifier. Identifiers match the following regular expression: [a-zA-Z_][0-9a-zA-Z_]*
Definition at line 46 of file TGLexer.cpp.
References llvm::CallingConv::C, llvm::First, and isDigit().
Referenced by lexMacroName().
Definition at line 60 of file TGLexer.cpp.
References assert(), End, and isValidIDChar().
Referenced by llvm::TGLexer::TGLexer().
|
constexpr |
Definition at line 52 of file TGLexer.cpp.