Relative Content

Tag Archive for clangllvm

The checkPostStmt function in checkerContext Clang is not able to detect the for loops in my test cases

I am working on creating a tool to detect parallelism in a function, I am using checkerContext, to find the for loop inside my function and then traversing through the body of the loop to detect any parallelism and generate a bugReport if there is no parallelism in the function. The checker code and my testcases code is attached below. I am not able to figure out why none of the debugging output lines that is llvm::errs() are not executed. Nothing is being printed on the console.