diff options
Diffstat (limited to 'clang/Driver/PrintPreprocessedOutput.cpp')
| -rw-r--r-- | clang/Driver/PrintPreprocessedOutput.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/Driver/PrintPreprocessedOutput.cpp b/clang/Driver/PrintPreprocessedOutput.cpp index f54e52cf9b0..0d68ee24d0d 100644 --- a/clang/Driver/PrintPreprocessedOutput.cpp +++ b/clang/Driver/PrintPreprocessedOutput.cpp @@ -31,6 +31,11 @@ static Preprocessor *EModePP; static bool EmodeEmittedTokensOnThisLine; static DirectoryLookup::DirType EmodeFileType =DirectoryLookup::NormalHeaderDir; + + +/// MoveToLine - Move the output to the source line specified by the location +/// object. We can do this by emitting some number of \n's, or be emitting a +/// #line directive. static void MoveToLine(SourceLocation Loc) { if (DisableLineMarkers) return; @@ -113,6 +118,8 @@ static void HandleFileChange(SourceLocation Loc, putchar_unlocked('\n'); } +/// HandleIdent - Handle #ident directives when read by the preprocessor. +/// static void HandleIdent(SourceLocation Loc, const std::string &Val) { MoveToLine(Loc); @@ -169,6 +176,7 @@ struct UnknownPragmaHandler : public PragmaHandler { } // end anonymous namespace /// DoPrintPreprocessedInput - This implements -E mode. +/// void clang::DoPrintPreprocessedInput(Preprocessor &PP) { LexerToken Tok; char Buffer[256]; |

