clang-ast: ensure that '-std=c++11' is used
This commit is contained in:
parent
45a89b1c46
commit
1bb7c7fbf2
|
@ -21,10 +21,12 @@ int main(int argc, char **argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
const char *argv1[] = { argv[0], "-std=c++11" };
|
||||
|
||||
CXIndex index = clang_createIndex(0, 0);
|
||||
CXTranslationUnit unit = clang_parseTranslationUnit(
|
||||
index,
|
||||
argv[1], nullptr, 0,
|
||||
argv[1], argv1, sizeof(argv1) / sizeof(argv1[0]),
|
||||
nullptr, 0,
|
||||
CXTranslationUnit_None);
|
||||
if (unit == nullptr) {
|
||||
|
|
Loading…
Reference in New Issue