[cfe-dev] how can I enable alpha/debug checker or my own checker
龙行天下
hunterguo at vip.qq.com
Thu May 30 00:33:22 PDT 2013
i write a new checker named test.NewChecker.it works in cmd:clang -cc1 -analyze -analyzer-checker=test.NewChecker test.c
but cmd:./scan-build --use-analyzer=/Users/tester/workspace/WeixinTest/clang/release3.2/build/Release+Asserts/bin/clang -o ~/Documents -enable-checker test.NewChecker xcodebuild -workspace /Users/tester/workspace/WeixinTest/workspace/PropMemFun/PropMemFun.xcodeproj/project.xcworkspace -scheme PropMemFun -sdk iphoneos6.1 build
not work
it seems that -enable-checker does not work because $Options->{"CCC_ANALYZER_ANALYSIS"} is not used .the code:
my $OutputDir = $Options->{"OUTPUT_DIR"};
my $CLANG = $Options->{"CLANG"};
push @$Args,
"RUN_CLANG_STATIC_ANALYZER=YES",
"CLANG_ANALYZER_OUTPUT=plist-html",
"CLANG_ANALYZER_EXEC=$CLANG",
"CLANG_ANALYZER_OUTPUT_DIR=$OutputDir";
return (system(@$Args) >> 8);
my question is :how can I enable alpha/debug checker or my own checker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130530/807f4ed8/attachment.html>
More information about the cfe-dev
mailing list