[cfe-commits] r94393 - /cfe/trunk/include/clang-c/Index.h

Daniel Dunbar daniel at zuster.org
Sun Jan 24 16:43:14 PST 2010


Author: ddunbar
Date: Sun Jan 24 18:43:14 2010
New Revision: 94393

URL: http://llvm.org/viewvc/llvm-project?rev=94393&view=rev
Log:
Update comment.

Modified:
    cfe/trunk/include/clang-c/Index.h

Modified: cfe/trunk/include/clang-c/Index.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=94393&r1=94392&r2=94393&view=diff

==============================================================================
--- cfe/trunk/include/clang-c/Index.h (original)
+++ cfe/trunk/include/clang-c/Index.h Sun Jan 24 18:43:14 2010
@@ -162,8 +162,9 @@
  *
  *   // This will load all the symbols from 'IndexTest.c', excluding symbols
  *   // from 'IndexTest.pch'.
- *   char *args[] = { "-Xclang", "-include-pch=IndexTest.pch", 0 };
- *   TU = clang_createTranslationUnitFromSourceFile(Idx, "IndexTest.c", 2, args);
+ *   char *args[] = { "-Xclang", "-include-pch=IndexTest.pch" };
+ *   TU = clang_createTranslationUnitFromSourceFile(Idx, "IndexTest.c", 2, args,
+ *                                                  0, 0);
  *   clang_visitChildren(clang_getTranslationUnitCursor(TU),
  *                       TranslationUnitVisitor, 0);
  *   clang_disposeTranslationUnit(TU);





More information about the cfe-commits mailing list