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
- public bool ReadPreprocessorOptions(const clang::PreprocessorOptions & PPOpts, bool Complain, std::string & SuggestedPredefines)
- public SimpleASTReaderListener(clang::Preprocessor & PP)
Inherited from ASTReaderListener:
- public ReadCounter
- public ReadDiagnosticOptions
- public ReadFileSystemOptions
- public ReadFullVersionInformation
- public ReadHeaderSearchOptions
- public ReadLanguageOptions
- public ReadModuleMapFile
- public ReadModuleName
- public ReadPreprocessorOptions
- public ReadTargetOptions
- public needsImportVisitation
- public needsInputFileVisitation
- public needsSystemInputFileVisitation
- public readModuleFileExtension
- public visitImport
- public visitInputFile
- public visitModuleFile
Methods
¶bool ReadPreprocessorOptions(
const clang::PreprocessorOptions& PPOpts,
bool Complain,
std::string& SuggestedPredefines)
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)
SimpleASTReaderListener(clang::Preprocessor& PP)
Declared at: clang/include/clang/Serialization/ASTReader.h:308