clang 19.0.0git
Public Member Functions | Public Attributes | List of all members
clang::PreprocessorOutputOptions Class Reference

PreprocessorOutputOptions - Options for controlling the C preprocessor output (e.g., -E). More...

#include "clang/Frontend/PreprocessorOutputOptions.h"

Public Member Functions

 PreprocessorOutputOptions ()
 

Public Attributes

unsigned ShowCPP: 1
 Print normal preprocessed output.
 
unsigned ShowComments: 1
 Show comments.
 
unsigned ShowLineMarkers: 1
 Show #line markers.
 
unsigned UseLineDirectives: 1
 Use #line instead of GCC-style # N.
 
unsigned ShowMacroComments: 1
 Show comments, even in macros.
 
unsigned ShowMacros: 1
 Print macro definitions.
 
unsigned ShowIncludeDirectives: 1
 Print includes, imports etc. within preprocessed output.
 
unsigned RewriteIncludes: 1
 Preprocess include directives only.
 
unsigned RewriteImports: 1
 Include contents of transitively-imported modules.
 
unsigned MinimizeWhitespace: 1
 Ignore whitespace from input.
 
unsigned DirectivesOnly: 1
 Process directives but do not expand macros.
 
unsigned KeepSystemIncludes: 1
 Do not expand system headers.
 

Detailed Description

PreprocessorOutputOptions - Options for controlling the C preprocessor output (e.g., -E).

Definition at line 18 of file PreprocessorOutputOptions.h.

Constructor & Destructor Documentation

◆ PreprocessorOutputOptions()

clang::PreprocessorOutputOptions::PreprocessorOutputOptions ( )
inline

Member Data Documentation

◆ DirectivesOnly

unsigned clang::PreprocessorOutputOptions::DirectivesOnly

Process directives but do not expand macros.

Definition at line 41 of file PreprocessorOutputOptions.h.

Referenced by clang::DoPrintPreprocessedInput(), GeneratePreprocessorOutputArgs(), ParsePreprocessorOutputArgs(), and PreprocessorOutputOptions().

◆ KeepSystemIncludes

unsigned clang::PreprocessorOutputOptions::KeepSystemIncludes

Do not expand system headers.

Definition at line 43 of file PreprocessorOutputOptions.h.

Referenced by clang::DoPrintPreprocessedInput(), and PreprocessorOutputOptions().

◆ MinimizeWhitespace

unsigned clang::PreprocessorOutputOptions::MinimizeWhitespace

Ignore whitespace from input.

Definition at line 39 of file PreprocessorOutputOptions.h.

Referenced by clang::DoPrintPreprocessedInput(), and PreprocessorOutputOptions().

◆ RewriteImports

unsigned clang::PreprocessorOutputOptions::RewriteImports

◆ RewriteIncludes

unsigned clang::PreprocessorOutputOptions::RewriteIncludes

Preprocess include directives only.

Definition at line 35 of file PreprocessorOutputOptions.h.

Referenced by clang::CreateFrontendBaseAction(), and PreprocessorOutputOptions().

◆ ShowComments

unsigned clang::PreprocessorOutputOptions::ShowComments

Show comments.

Definition at line 23 of file PreprocessorOutputOptions.h.

Referenced by clang::DoPrintPreprocessedInput(), and PreprocessorOutputOptions().

◆ ShowCPP

unsigned clang::PreprocessorOutputOptions::ShowCPP

◆ ShowIncludeDirectives

unsigned clang::PreprocessorOutputOptions::ShowIncludeDirectives

Print includes, imports etc. within preprocessed output.

Definition at line 33 of file PreprocessorOutputOptions.h.

Referenced by clang::DoPrintPreprocessedInput(), and PreprocessorOutputOptions().

◆ ShowLineMarkers

unsigned clang::PreprocessorOutputOptions::ShowLineMarkers

◆ ShowMacroComments

unsigned clang::PreprocessorOutputOptions::ShowMacroComments

Show comments, even in macros.

Definition at line 29 of file PreprocessorOutputOptions.h.

Referenced by clang::DoPrintPreprocessedInput(), and PreprocessorOutputOptions().

◆ ShowMacros

unsigned clang::PreprocessorOutputOptions::ShowMacros

◆ UseLineDirectives

unsigned clang::PreprocessorOutputOptions::UseLineDirectives

Use #line instead of GCC-style # N.

Definition at line 27 of file PreprocessorOutputOptions.h.

Referenced by clang::DoPrintPreprocessedInput(), PreprocessorOutputOptions(), and clang::RewriteIncludesInInput().


The documentation for this class was generated from the following file: