add cmake options for the clang static analyzer
Merge pull request #816 from myk002/clang_fixes

add cmake options for the clang static analyzer