cfe-dev Digest, Vol 74, Issue 24

I believe that if you change the lines:


    CompilerInstance ci;

    DiagnosticOptions diagnosticOptions;
    TextDiagnosticPrinter *pTextDiagnosticPrinter =

        new TextDiagnosticPrinter(
            llvm::outs(),

            &diagnosticOptions,
            true);

    ci.createDiagnostics(pTextDiagnosticPrinter);

to simply:


    CompilerInstance ci;
    ci.createDiagnostics();

the problem will go away. I’m not sure why clang allows the current call, as the interface changed.

Robert