clang: include/clang/Frontend/PreprocessorOutputOptions.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_CLANG_FRONTEND_PREPROCESSOROUTPUTOPTIONS_H

10#define LLVM_CLANG_FRONTEND_PREPROCESSOROUTPUTOPTIONS_H

11

12#include <llvm/Support/Compiler.h>

13

15

16

17

19public:

20 LLVM_PREFERRED_TYPE(bool)

22 LLVM_PREFERRED_TYPE(bool)

24 LLVM_PREFERRED_TYPE(bool)

26 LLVM_PREFERRED_TYPE(bool)

27 unsigned UseLineDirectives : 1;

28 LLVM_PREFERRED_TYPE(bool)

30 LLVM_PREFERRED_TYPE(bool)

31 unsigned ShowMacros : 1;

32 LLVM_PREFERRED_TYPE(bool)

33 unsigned ShowIncludeDirectives : 1;

34 LLVM_PREFERRED_TYPE(bool)

36 LLVM_PREFERRED_TYPE(bool)

37 unsigned RewriteIncludes : 1;

38 LLVM_PREFERRED_TYPE(bool)

39 unsigned RewriteImports : 1;

40 LLVM_PREFERRED_TYPE(bool)

42 LLVM_PREFERRED_TYPE(bool)

43 unsigned DirectivesOnly : 1;

44 LLVM_PREFERRED_TYPE(bool)

46

47public:

62 }

63};

64

65}

66

67#endif

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

unsigned UseLineDirectives

Use #line instead of GCC-style # N.

unsigned ShowMacros

Print macro definitions.

unsigned ShowIncludeDirectives

Print includes, imports etc. within preprocessed output.

unsigned ShowMacroComments

Show comments, even in macros.

unsigned ShowCPP

Print normal preprocessed output.

unsigned MinimizeWhitespace

Ignore whitespace from input.

unsigned KeepSystemIncludes

Do not expand system headers.

unsigned ShowComments

Show comments.

unsigned ShowEmbedDirectives

Print embeds, etc. within preprocessed.

unsigned ShowLineMarkers

Show #line markers.

unsigned RewriteIncludes

Preprocess include directives only.

unsigned DirectivesOnly

Process directives but do not expand macros.

unsigned RewriteImports

Include contents of transitively-imported modules.

The JSON file list parser is used to communicate input to InstallAPI.