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"
80 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts,
92 // deferred to Preprocessor::Initialize().
169 Preprocessor::~Preprocessor() {
189 void Preprocessor::Initialize(const TargetInfo &Target,
217 void Preprocessor::InitializeForModelFile() {
229 void Preprocessor::FinalizeForModelFile() {
235 void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const {
261 void Preprocessor::DumpLocation(SourceLocation Loc) const {
265 void Preprocessor::DumpMacro(const MacroInfo &MI) const {
274 void Preprocessor::PrintStats() {
275 llvm::errs() << "\n*** Preprocessor Stats:\n";
312 Preprocessor::macro_iterator
313 Preprocessor::macro_begin(bool IncludeExternalMacros) const {
327 size_t Preprocessor::getTotalMemory() const {
339 Preprocessor::macro_iterator
340 Preprocessor::macro_end(bool IncludeExternalMacros) const {
357 StringRef Preprocessor::getLastMacroWithSpelling(
362 for (Preprocessor::macro_iterator I = macro_begin(), E = macro_end();
384 void Preprocessor::recomputeCurLexerKind() {
395 bool Preprocessor::SetCodeCompletionPoint(FileEntryRef File,
450 void Preprocessor::CodeCompleteIncludedFile(llvm::StringRef Dir,
457 void Preprocessor::CodeCompleteNaturalLanguage() {
466 StringRef Preprocessor::getSpelling(const Token &Tok,
488 void Preprocessor::CreateString(StringRef Str, Token &Tok,
508 SourceLocation Preprocessor::SplitToken(SourceLocation Loc, unsigned Length) {
524 Module *Preprocessor::getCurrentModule() {
531 Module *Preprocessor::getCurrentModuleImplementation() {
539 // Preprocessor Initialization Methods
544 void Preprocessor::EnterMainSourceFile() {
604 void Preprocessor::setPCHThroughHeaderFileID(FileID FID) {
610 bool Preprocessor::isPCHThroughHeader(const FileEntry *FE) {
616 bool Preprocessor::creatingPCHWithThroughHeader() {
621 bool Preprocessor::usingPCHWithThroughHeader() {
626 bool Preprocessor::creatingPCHWithPragmaHdrStop() {
630 bool Preprocessor::usingPCHWithPragmaHdrStop() {
639 void Preprocessor::SkipTokensWhileUsingPCH() {
666 void Preprocessor::replayPreambleConditionalStack() {
683 void Preprocessor::EndSourceFile() {
696 IdentifierInfo *Preprocessor::LookUpIdentifierInfo(Token &Identifier) const {
731 void Preprocessor::SetPoisonReason(IdentifierInfo *II, unsigned DiagID) {
735 void Preprocessor::PoisonSEHIdentifiers(bool Poison) {
749 void Preprocessor::HandlePoisonedIdentifier(Token & Identifier) {
760 void Preprocessor::updateOutOfDateIdentifier(const IdentifierInfo &II) const {
773 bool Preprocessor::HandleIdentifier(Token &Identifier) {
866 void Preprocessor::Lex(Token &Result) {
979 void Preprocessor::LexTokensUntilEOF(std::vector<Token> *Tokens) {
1002 bool Preprocessor::LexHeaderName(Token &FilenameTok, bool AllowMacroExpansion) {
1091 void Preprocessor::CollectPpImportSuffix(SmallVectorImpl<Token> &Toks) {
1145 bool Preprocessor::LexAfterModuleImport(Token &Result) {
1334 void Preprocessor::makeModuleVisible(Module *M, SourceLocation Loc) {
1351 bool Preprocessor::FinishLexStringLiteral(Token &Result, std::string &String,
1392 bool Preprocessor::parseSimpleIntegerLiteral(Token &Tok, uint64_t &Value) {
1412 void Preprocessor::addCommentHandler(CommentHandler *Handler) {
1419 void Preprocessor::removeCommentHandler(CommentHandler *Handler) {
1426 bool Preprocessor::HandleComment(Token &result, SourceRange Comment) {
1440 void Preprocessor::emitMacroDeprecationWarning(const Token &Identifier) const {
1455 void Preprocessor::emitRestrictExpansionWarning(const Token &Identifier) const {
1470 void Preprocessor::emitRestrictInfNaNWarning(const Token &Identifier,
1475 void Preprocessor::emitFinalMacroWarning(const Token &Identifier,
1487 bool Preprocessor::isSafeBufferOptOut(const SourceManager &SourceMgr,
1541 bool Preprocessor::enterOrExitSafeBufferOptOutRegion(
1578 bool Preprocessor::isPPInSafeBufferOptOutRegion() {
1581 bool Preprocessor::isPPInSafeBufferOptOutRegion(SourceLocation &StartLoc) {
1587 Preprocessor::serializeSafeBufferOptOutMap() const {
1606 bool Preprocessor::setDeserializedSafeBufferOptOutMap(
1635 void Preprocessor::createPreprocessingRecord() {
1643 const char *Preprocessor::getCheckPoint(FileID FID, const char *Start) const {