clang 17.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"

Collaboration diagram for clang::PreprocessorOutputOptions:
Collaboration graph
[legend]

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.
 

Detailed Description

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

Definition at line 16 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 28 of file PreprocessorOutputOptions.h.

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

◆ MinimizeWhitespace

unsigned clang::PreprocessorOutputOptions::MinimizeWhitespace

Ignore whitespace from input.

Definition at line 27 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 25 of file PreprocessorOutputOptions.h.

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

◆ ShowComments

unsigned clang::PreprocessorOutputOptions::ShowComments

Show comments.

Definition at line 19 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 24 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 22 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 21 of file PreprocessorOutputOptions.h.

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


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