#include "MacroPPCallbacks.h"
#include "CGDebugInfo.h"
#include "clang/CodeGen/ModuleBuilder.h"
#include "clang/Lex/MacroInfo.h"
#include "clang/Lex/Preprocessor.h"
usingnamespaceclang;
void MacroPPCallbacks::writeMacroDefinition(const IdentifierInfo &II,
const MacroInfo &MI,
Preprocessor &PP, raw_ostream &Name,
raw_ostream &Value) { … }
MacroPPCallbacks::MacroPPCallbacks(CodeGenerator *Gen, Preprocessor &PP)
: … { … }
llvm::DIMacroFile *MacroPPCallbacks::getCurrentScope() { … }
SourceLocation MacroPPCallbacks::getCorrectLocation(SourceLocation Loc) { … }
void MacroPPCallbacks::updateStatusToNextScope() { … }
void MacroPPCallbacks::FileEntered(SourceLocation Loc) { … }
void MacroPPCallbacks::FileExited(SourceLocation Loc) { … }
void MacroPPCallbacks::FileChanged(SourceLocation Loc, FileChangeReason Reason,
SrcMgr::CharacteristicKind FileType,
FileID PrevFID) { … }
void MacroPPCallbacks::InclusionDirective(
SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName,
bool IsAngled, CharSourceRange FilenameRange, OptionalFileEntryRef File,
StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule,
bool ModuleImported, SrcMgr::CharacteristicKind FileType) { … }
void MacroPPCallbacks::MacroDefined(const Token &MacroNameTok,
const MacroDirective *MD) { … }
void MacroPPCallbacks::MacroUndefined(const Token &MacroNameTok,
const MacroDefinition &MD,
const MacroDirective *Undef) { … }