Hello,
Im using LLVM lib release 13.0.0 and im parsing c++ files using buildASTfromCodeWithArgsmethod.
When im trying to parse one certain file with passed argument -std=c++17 it throws stack overflow exception
When im using argument -std=c++14 or -std=c++11 the problem goes away and it works fine.
Also when I dont use this argument problem does not exist too.
The file im trying to parse contains only include to another file and some defines.
Thats code for executing buildASTFromCodeWithArgs method:
Hello, Im using LLVM lib release 13.0.0 and im parsing c++ files using
buildASTfromCodeWithArgs
method. When im trying to parse one certain file with passed argument-std=c++17
it throws stack overflow exceptionWhen im using argument
-std=c++14
or-std=c++11
the problem goes away and it works fine. Also when I dont use this argument problem does not exist too.The file im trying to parse contains only include to another file and some defines.
Thats code for executing
buildASTFromCodeWithArgs
method:where fileContent is files text, args is as I said
"-std=c++17"
, file is path to file.