[cfe-commits] r64939 - /cfe/trunk/lib/Lex/Preprocessor.cpp

Chris Lattner sabre at nondot.org
Wed Feb 18 10:56:29 PST 2009


Author: lattner
Date: Wed Feb 18 12:56:29 2009
New Revision: 64939

URL: http://llvm.org/viewvc/llvm-project?rev=64939&view=rev
Log:
update comment.

Modified:
    cfe/trunk/lib/Lex/Preprocessor.cpp

Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=64939&r1=64938&r2=64939&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Wed Feb 18 12:56:29 2009
@@ -291,11 +291,7 @@
 /// token, return a new location that specifies a character within the token.
 SourceLocation Preprocessor::AdvanceToTokenCharacter(SourceLocation TokStart, 
                                                      unsigned CharNo) {
-  // If they request the first char of the token, we're trivially done.  If this
-  // is a macro expansion, it doesn't make sense to point to a character within
-  // the instantiation point (the name).  We could point to the source
-  // character, but without also pointing to instantiation info, this is
-  // confusing.
+  // If they request the first char of the token, we're trivially done.
   if (CharNo == 0) return TokStart;
   
   // Figure out how many physical characters away the specified instantiation





More information about the cfe-commits mailing list