clang 8.0.0

PreprocessorOutputOptions.h
Go to the documentation of this file.
1 //===--- PreprocessorOutputOptions.h ----------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_CLANG_FRONTEND_PREPROCESSOROUTPUTOPTIONS_H
11 #define LLVM_CLANG_FRONTEND_PREPROCESSOROUTPUTOPTIONS_H
12
13 namespace clang {
14
15 /// PreprocessorOutputOptions - Options for controlling the C preprocessor
16 /// output (e.g., -E).
17 class PreprocessorOutputOptions {
18 public:
19 unsigned ShowCPP : 1; ///< Print normal preprocessed output.
20 unsigned ShowComments : 1; ///< Show comments.
21 unsigned ShowLineMarkers : 1; ///< Show \#line markers.
22 unsigned UseLineDirectives : 1; ///< Use \#line instead of GCC-style \# N.
23 unsigned ShowMacroComments : 1; ///< Show comments, even in macros.
24 unsigned ShowMacros : 1; ///< Print macro definitions.
25 unsigned ShowIncludeDirectives : 1; ///< Print includes, imports etc. within preprocessed output.
26 unsigned RewriteIncludes : 1; ///< Preprocess include directives only.
27 unsigned RewriteImports : 1; ///< Include contents of transitively-imported modules.
28
29 public:
30 PreprocessorOutputOptions() {
31 ShowCPP = 0;
32 ShowComments = 0;
33 ShowLineMarkers = 1;
34 UseLineDirectives = 0;
35 ShowMacroComments = 0;
36 ShowMacros = 0;
37 ShowIncludeDirectives = 0;
38 RewriteIncludes = 0;
39 RewriteImports = 0;
40 }
41 };
42
43 } // end namespace clang
44
45 #endif
clang::PreprocessorOutputOptions
PreprocessorOutputOptions - Options for controlling the C preprocessor output (e.g., -E).
Definition: PreprocessorOutputOptions.h:17
clang::PreprocessorOutputOptions::RewriteIncludes
unsigned RewriteIncludes
Preprocess include directives only.
Definition: PreprocessorOutputOptions.h:26
clang::PreprocessorOutputOptions::ShowMacros
unsigned ShowMacros
Print macro definitions.
Definition: PreprocessorOutputOptions.h:24
clang::PreprocessorOutputOptions::ShowIncludeDirectives
unsigned ShowIncludeDirectives
Print includes, imports etc. within preprocessed output.
Definition: PreprocessorOutputOptions.h:25
clang::PreprocessorOutputOptions::PreprocessorOutputOptions
PreprocessorOutputOptions()
Definition: PreprocessorOutputOptions.h:30
clang::PreprocessorOutputOptions::UseLineDirectives
unsigned UseLineDirectives
Use #line instead of GCC-style # N.
Definition: PreprocessorOutputOptions.h:22
clang::PreprocessorOutputOptions::RewriteImports
unsigned RewriteImports
Include contents of transitively-imported modules.
Definition: PreprocessorOutputOptions.h:27
clang::PreprocessorOutputOptions::ShowComments
unsigned ShowComments
Show comments.
Definition: PreprocessorOutputOptions.h:20
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::PreprocessorOutputOptions::ShowMacroComments
unsigned ShowMacroComments
Show comments, even in macros.
Definition: PreprocessorOutputOptions.h:23
clang::PreprocessorOutputOptions::ShowLineMarkers
unsigned ShowLineMarkers
Show #line markers.
Definition: PreprocessorOutputOptions.h:21
clang::PreprocessorOutputOptions::ShowCPP
unsigned ShowCPP
Print normal preprocessed output.
Definition: PreprocessorOutputOptions.h:19