clang 22.0.0git
MacroExpansionContext.cpp File Reference
#include "clang/Analysis/MacroExpansionContext.h"
#include "llvm/Support/Debug.h"
#include <optional>

Go to the source code of this file.

Classes

class  clang::detail::MacroExpansionRangeRecorder

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
namespace  clang::detail

Macros

#define DEBUG_TYPE   "macro-expansion-context"

Functions

static void dumpTokenInto (const clang::Preprocessor &PP, llvm::raw_ostream &OS, clang::Token Tok)
static void dumpTokenInto (const Preprocessor &PP, raw_ostream &OS, Token Tok)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "macro-expansion-context"

Definition at line 13 of file MacroExpansionContext.cpp.

Function Documentation

◆ dumpTokenInto() [1/2]

void dumpTokenInto ( const clang::Preprocessor & PP,
llvm::raw_ostream & OS,
clang::Token Tok )
static

◆ dumpTokenInto() [2/2]

void dumpTokenInto ( const Preprocessor & PP,
raw_ostream & OS,
Token Tok )
static

Definition at line 177 of file MacroExpansionContext.cpp.

References clang::Preprocessor::getSpelling(), and Tok.