[cfe-users] Header errors using Clang

2016-07-29 Thread Ray Mitchell via cfe-users
I just installed the 64-bit versions of Clang 3.8.1 and MinGW 5.1.0 on my 64-bit Windows 10 system. Everything seemed to install fine but I'm getting lots of errors, not warnings, on the contents of the standard header files. I first set my INCLUDE path to where my Microsoft VS 2015 headers are

[cfe-users] Issue with variable length arrays and C++: differences between g++ and clang

2016-07-29 Thread Chris Eldred via cfe-users
Hey Clang Users, I am having issues compiling the follow piece of code: #include int main() { int x = 8; int y = 8; double (*testptr)[y][2][2] = (double (*)[y][2][2]) malloc(sizeof(double[x][y][2][2])); free(testptr); return 0; } When I run clang test.cxx -lstdc++ -pedantic

[cfe-users] Null CFGBlock successors

2016-07-29 Thread Derrick McKee via cfe-users
Hi, I am writing a ClangTool that visits every function in a module, and edits source code based on the CFG. For a function I want to instrument, however, the CFG produces blocks that list a successor as NULL. This is a problem because I need to perform a breadth-first search of the CFG, and I c