class SimpleASTReaderListener

Declaration

class SimpleASTReaderListener : public ASTReaderListener { /* full declaration omitted */ };

Description

ASTReaderListenter implementation to set SuggestedPredefines of ASTReader which is required to use a pch file. This is the replacement of PCHValidator or SimplePCHValidator when using a pch file without validating it.

Declared at: clang/include/clang/Serialization/ASTReader.h:304

Inherits from: ASTReaderListener

Member Variables

private clang::Preprocessor& PP

Method Overview

Inherited from ASTReaderListener:

Methods

bool ReadPreprocessorOptions(
    const clang::PreprocessorOptions& PPOpts,
    bool Complain,
    std::string& SuggestedPredefines)

Description

Receives the preprocessor options.

Declared at: clang/include/clang/Serialization/ASTReader.h:310

Parameters

const clang::PreprocessorOptions& PPOpts
bool Complain
std::string& SuggestedPredefines
Can be filled in with the set of predefines that are suggested by the preprocessor options. Typically only used when loading a precompiled header.

Returns

true to indicate the preprocessor options are invalid, or false otherwise.

SimpleASTReaderListener(clang::Preprocessor& PP)

Declared at: clang/include/clang/Serialization/ASTReader.h:308

Parameters

clang::Preprocessor& PP