[cfe-commits] r38668 - /cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:23:40 PDT 2007
Author: sabre
Date: Wed Jul 11 11:23:39 2007
New Revision: 38668
URL: http://llvm.org/viewvc/llvm-project?rev=38668&view=rev
Log:
improve comments
Modified:
cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp
Modified: cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp?rev=38668&r1=38667&r2=38668&view=diff
==============================================================================
--- cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp Wed Jul 11 11:23:39 2007
@@ -31,6 +31,11 @@
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 @@
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 @@
} // end anonymous namespace
/// DoPrintPreprocessedInput - This implements -E mode.
+///
void clang::DoPrintPreprocessedInput(Preprocessor &PP) {
LexerToken Tok;
char Buffer[256];
More information about the cfe-commits
mailing list