omtcyf0 marked an inline comment as done.

================
Comment at: clang-rename/USRLocFinder.cpp:73-75
@@ -73,3 +72,5 @@
           SourceLocation Location = Initializer->getSourceLocation();
-          StringRef TokenName = 
Lexer::getSourceText(CharSourceRange::getTokenRange(Location), 
Context.getSourceManager(), Context.getLangOpts());
+          StringRef TokenName = Lexer::getSourceText(
+              CharSourceRange::getTokenRange(Location),
+              Context.getSourceManager(), Context.getLangOpts());
           if (TokenName == PrevName) {
----------------
Not sure whether I know how to address this one.

clang::tooling:fixit::getText returns text of a whole AST Node, while here we 
only want to get text of the first token that AST Node has. I.e. 'foo' vs. 
'foo(0)'.


http://reviews.llvm.org/D22091



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to