Lines Matching refs:Preprocessor

1 //===- Preprocessor.cpp - C Language Family Preprocessor Implementation ---===//
9 // This file implements the Preprocessor interface.
27 #include "clang/Lex/Preprocessor.h"
83 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts,
95 // deferred to Preprocessor::Initialize().
172 Preprocessor::~Preprocessor() {
192 void Preprocessor::Initialize(const TargetInfo &Target,
220 void Preprocessor::InitializeForModelFile() {
232 void Preprocessor::FinalizeForModelFile() {
238 void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const {
264 void Preprocessor::DumpLocation(SourceLocation Loc) const {
268 void Preprocessor::DumpMacro(const MacroInfo &MI) const {
277 void Preprocessor::PrintStats() {
278 llvm::errs() << "\n*** Preprocessor Stats:\n";
315 Preprocessor::macro_iterator
316 Preprocessor::macro_begin(bool IncludeExternalMacros) const {
330 size_t Preprocessor::getTotalMemory() const {
342 Preprocessor::macro_iterator
343 Preprocessor::macro_end(bool IncludeExternalMacros) const {
360 StringRef Preprocessor::getLastMacroWithSpelling(
365 for (Preprocessor::macro_iterator I = macro_begin(), E = macro_end();
387 void Preprocessor::recomputeCurLexerKind() {
398 bool Preprocessor::SetCodeCompletionPoint(FileEntryRef File,
453 void Preprocessor::CodeCompleteIncludedFile(llvm::StringRef Dir,
460 void Preprocessor::CodeCompleteNaturalLanguage() {
469 StringRef Preprocessor::getSpelling(const Token &Tok,
491 void Preprocessor::CreateString(StringRef Str, Token &Tok,
511 SourceLocation Preprocessor::SplitToken(SourceLocation Loc, unsigned Length) {
527 Module *Preprocessor::getCurrentModule() {
534 Module *Preprocessor::getCurrentModuleImplementation() {
542 // Preprocessor Initialization Methods
547 void Preprocessor::EnterMainSourceFile() {
607 void Preprocessor::setPCHThroughHeaderFileID(FileID FID) {
613 bool Preprocessor::isPCHThroughHeader(const FileEntry *FE) {
619 bool Preprocessor::creatingPCHWithThroughHeader() {
624 bool Preprocessor::usingPCHWithThroughHeader() {
629 bool Preprocessor::creatingPCHWithPragmaHdrStop() {
633 bool Preprocessor::usingPCHWithPragmaHdrStop() {
642 void Preprocessor::SkipTokensWhileUsingPCH() {
669 void Preprocessor::replayPreambleConditionalStack() {
686 void Preprocessor::EndSourceFile() {
699 IdentifierInfo *Preprocessor::LookUpIdentifierInfo(Token &Identifier) const {
734 void Preprocessor::SetPoisonReason(IdentifierInfo *II, unsigned DiagID) {
738 void Preprocessor::PoisonSEHIdentifiers(bool Poison) {
752 void Preprocessor::HandlePoisonedIdentifier(Token & Identifier) {
763 void Preprocessor::updateOutOfDateIdentifier(const IdentifierInfo &II) const {
776 bool Preprocessor::HandleIdentifier(Token &Identifier) {
869 void Preprocessor::Lex(Token &Result) {
978 void Preprocessor::LexTokensUntilEOF(std::vector<Token> *Tokens) {
1001 bool Preprocessor::LexHeaderName(Token &FilenameTok, bool AllowMacroExpansion) {
1090 void Preprocessor::CollectPpImportSuffix(SmallVectorImpl<Token> &Toks) {
1144 bool Preprocessor::LexAfterModuleImport(Token &Result) {
1333 void Preprocessor::makeModuleVisible(Module *M, SourceLocation Loc) {
1350 bool Preprocessor::FinishLexStringLiteral(Token &Result, std::string &String,
1391 bool Preprocessor::parseSimpleIntegerLiteral(Token &Tok, uint64_t &Value) {
1411 void Preprocessor::addCommentHandler(CommentHandler *Handler) {
1418 void Preprocessor::removeCommentHandler(CommentHandler *Handler) {
1425 bool Preprocessor::HandleComment(Token &result, SourceRange Comment) {
1439 void Preprocessor::emitMacroDeprecationWarning(const Token &Identifier) const {
1454 void Preprocessor::emitRestrictExpansionWarning(const Token &Identifier) const {
1469 void Preprocessor::emitRestrictInfNaNWarning(const Token &Identifier,
1474 void Preprocessor::emitFinalMacroWarning(const Token &Identifier,
1486 bool Preprocessor::isSafeBufferOptOut(const SourceManager &SourceMgr,
1540 bool Preprocessor::enterOrExitSafeBufferOptOutRegion(
1577 bool Preprocessor::isPPInSafeBufferOptOutRegion() {
1580 bool Preprocessor::isPPInSafeBufferOptOutRegion(SourceLocation &StartLoc) {
1586 Preprocessor::serializeSafeBufferOptOutMap() const {
1605 bool Preprocessor::setDeserializedSafeBufferOptOutMap(
1634 void Preprocessor::createPreprocessingRecord() {
1642 const char *Preprocessor::getCheckPoint(FileID FID, const char *Start) const {