[cfe-commits] r131116 - /cfe/trunk/examples/Tooling/ClangCheck.cpp

Manuel Klimek klimek at google.com
Mon May 9 17:58:12 PDT 2011


Author: klimek
Date: Mon May  9 19:58:12 2011
New Revision: 131116

URL: http://llvm.org/viewvc/llvm-project?rev=131116&view=rev
Log:
Fixes compilation with Visual Studio by replacing the non-standard vector::data() access.

Modified:
    cfe/trunk/examples/Tooling/ClangCheck.cpp

Modified: cfe/trunk/examples/Tooling/ClangCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/Tooling/ClangCheck.cpp?rev=131116&r1=131115&r2=131116&view=diff
==============================================================================
--- cfe/trunk/examples/Tooling/ClangCheck.cpp (original)
+++ cfe/trunk/examples/Tooling/ClangCheck.cpp Mon May  9 19:58:12 2011
@@ -96,8 +96,8 @@
       if (!clang::tooling::RunToolWithFlags(
                new clang::SyntaxOnlyAction,
                LookupResult.CommandLine.size(),
-               clang::tooling::CommandLineToArgv(
-                   &LookupResult.CommandLine).data())) {
+               &clang::tooling::CommandLineToArgv(
+                   &LookupResult.CommandLine)[0])) {
         llvm::outs() << "Error while processing " << File << ".\n";
       }
     } else {





More information about the cfe-commits mailing list