<div dir="ltr">I tried running the command on some other files, and managed to get it working once, and then it segfaulted again when I ran the same command right after.<div><br></div><div><div>Suppressed 217 warnings (217 in non-user code).</div><div>Use -header-filter=.* to display errors from all non-system headers.</div><div>hongping@HLim-MBP:~/my/project$ ../build/bin/clang-tidy -checks=* ./MyFile.m</div><div>clang-tidy(3670,0x7fff71f9b000) malloc: *** error for object 0x7fcf20000007: pointer being realloc'd was not allocated</div><div>*** set a breakpoint in malloc_error_break to debug</div><div>Abort trap: 6</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 11, 2016 at 5:57 PM, Hongping Lim <span dir="ltr"><<a href="mailto:hongping.lim@gmail.com" target="_blank">hongping.lim@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am on Mac OS X 10.11.1, and downloaded the sources and followed the instructions to build clang-tidy. I used xcodebuild and xcpretty to generate the compile_commands.json file. I have the json file in my project root, and ran:<div><br></div><div>~/build/bin/clang-tidy ./MyFile.m<br><div><br></div><div>Initially I got this error "LLVM ERROR: unknown module format", and after some Googling, tried to delete all the fmodule and gmodule parameters from the json file.</div><div><br></div><div>After that, I keep getting "Segmentation fault: 11" most of the time. There was once when I was able to get the list of warnings, but when I run the same command right after, I get the segmentation fault again.</div></div><div><br></div><div>Thanks,</div><div>Hongping</div></div>
</blockquote></div><br></div>