[cfe-dev] how can I enable alpha/debug checker or my own checker

Jordan Rose jordan_rose at apple.com
Thu May 30 10:30:59 PDT 2013


Ah, it looks like one of us already fixed this. Please update your Clang repository, or grab the scan-build from checker-275 at clang-analyzer.llvm.org.

Jordan


On May 30, 2013, at 10:04 , Jordan Rose <jordan_rose at apple.com> wrote:

> Good catch. I'll fix this soon...sorry!
> 
> Jordan
> 
> 
> On May 30, 2013, at 0:33 , 龙行天下 <hunterguo at vip.qq.com> wrote:
> 
>> 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
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130530/f3f56e88/attachment.html>


More information about the cfe-dev mailing list