Changeset 8327

Show
Ignore:
Timestamp:
23/12/11 15:13:15 (5 months ago)
Author:
westram
Message:
  • clang static analyzer working
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r8320 r8327  
    4545NODIR=--no-print-directory 
    4646 
    47 # ---------------------- [unconditionally used options] 
    48  
    49 GCC:=gcc 
    50 GPP:=g++  
     47# ---------------------- [basic compiler setting] 
     48 
     49GCC:=$(CC) 
     50GPP:=$(CXX) 
    5151CPPreal:=cpp 
     52 
     53# to use clang-static-analyzer, call make like this: 
     54# setenv CLANG_STATIC_CHECKER 1 ; scan-build make -j5 build 
     55ifeq ($(CLANG_STATIC_CHECKER),1) 
     56CCC_ANALYZER_CPLUSPLUS=1 
     57endif 
    5258 
    5359# ---------------------- compiler version detection 
  • trunk/SOURCE_TOOLS/export2sub

    r8247 r8327  
    3737export SHOWTODO 
    3838 
     39# support for clang static checker 
     40export CLANG_STATIC_CHECKER 
     41export CCC_ANALYZER_CPLUSPLUS 
     42