Lines Matching +full:clang +full:- +full:analyzer
2 # Support Clang static analyzer on SRCS.
12 # text - don't generate extra files.
13 # html - generate html in obj.plist/ directories.
14 # plist - generate xml obj.plist files.
16 # contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/Analyses.def
24 # Run the Clang static analyzer against all sources and present
27 .if !target(__<bsd.clang-analyze.mk>__)
28 __<bsd.clang-analyze.mk>__:
32 .if ${COMPILER_TYPE} != "clang" && (make(analyze) || make(*.clang-analyzer))
33 .error Clang static analyzer requires clang but found that compiler '${CC}' is ${COMPILER_TYPE}
37 CLANG_ANALYZE_OUTPUT_DIR?= clang-analyze
38 CLANG_ANALYZE_FLAGS+= --analyze \
39 -Xanalyzer -analyzer-output=${CLANG_ANALYZE_OUTPUT} \
40 -o ${CLANG_ANALYZE_OUTPUT_DIR}
46 CLANG_ANALYZE_FLAGS+= -Xanalyzer -analyzer-checker=${checker}
50 CLANG_ANALYZE_CXX_FLAGS+= -Xanalyzer -analyzer-checker=${checker}
53 .SUFFIXES: .c .cc .cpp .cxx .C .clang-analyzer
55 CLANG_ANALYZE_CFLAGS= ${CFLAGS:N-Wa,--fatal-warnings}
56 CLANG_ANALYZE_CXXFLAGS= ${CXXFLAGS:N-Wa,--fatal-warnings}
58 .c.clang-analyzer:
62 .cc.clang-analyzer .cpp.clang-analyzer .cxx.clang-analyzer .C.clang-analyzer:
73 CLANG_ANALYZE_OBJS= ${CLANG_ANALYZE_SRCS:O:u:${OBJS_SRCS_FILTER:ts:}:S,$,.clang-analyzer,}
78 # obj.clang-analyzer, so add in some guesses in case 'make depend' wasn't ran,
79 # for when directly building 'obj.clang-analyzer'.
88 mkdir -p ${CLANG_ANALYZE_OUTPUT_DIR}
99 .endif # !target(__<bsd.clang-analyze.mk>__)