[clang-tools-extra] r305426 - Update callbacks tracker to match change in 305425

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 14 16:15:51 PDT 2017


Author: erichkeane
Date: Wed Jun 14 18:15:51 2017
New Revision: 305426

URL: http://llvm.org/viewvc/llvm-project?rev=305426&view=rev
Log:
Update callbacks tracker to match change in 305425

Modified:
    clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp

Modified: clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp?rev=305426&r1=305425&r2=305426&view=diff
==============================================================================
--- clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp (original)
+++ clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp Wed Jun 14 18:15:51 2017
@@ -590,7 +590,7 @@ void PPCallbacksTracker::appendArgument(
   SS << "[";
   // The argument tokens might include end tokens, so we reflect how
   // how getUnexpArgument provides the arguments.
-  for (int I = 0, E = Value->getNumArguments(); I < E; ++I) {
+  for (int I = 0, E = Value->getNumMacroArguments(); I < E; ++I) {
     const clang::Token *Current = Value->getUnexpArgument(I);
     int TokenCount = Value->getArgLength(Current) + 1; // include EOF
     E -= TokenCount;




More information about the cfe-commits mailing list