[PATCH] [extra] pptrace - preprocessor tracing and testing tool

Kim Gräsman kim.grasman at gmail.com
Sun Oct 27 05:39:08 PDT 2013

  I applied the patch and did a clean build on Clang r193498 on Windows, MSVC 10.

  For some reason, I'm getting an assertion failure whenever I #include <stdio.h>:
  Assertion failed: Result < Start+NumUnexpArgTokens && "Invalid arg #", file llvm-trunk\llvm\tools\clang\lib\Lex\MacroArgs.cpp, line 124

  I've boiled it down to the following repro:

    // repro.cpp
    #define DECORATED(id) id

    enum Enum
      DECORATED( One ) = 1

  Original problem surfaced in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\CodeAnalysis\sourceannotations.h:56.

  clang-check accepts it without complaining, so it seems like there's something amiss in the setup of pp-trace.


More information about the cfe-commits mailing list