diff options
-rw-r--r-- | include/clang-c/Index.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 248a699c27..b38e517851 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -162,8 +162,9 @@ CINDEX_LINKAGE void clang_disposeString(CXString string); * * // 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); |