Info | ||
---|---|---|
| ||
This page is automatically generated from the "Automated Detection" sections in the individual guidelines. Do not modify this page directly. |
Some of Clang's analysis is provided via compiler warning flags, which are prefixed with -W
. Other analysis passes require the static analyzer, which requires using the scan-build
tool, or passing -analyze
and -analyzer-checker
flags.
Version number:
Version number:
v3.5
C++ checkers | Rule |
---|---|
-Wdelete-incomplete | EXP57-CPP. Do not cast or delete pointers to incomplete classes |
-Winvalid-noreturn | [DCL39-CPP. Functions declared with [noreturn] must return void ] |
-Winvalid-noreturn | [MSC37-CPP. Do not return from a function declared [noreturn] ] |
-Wreturn-type | MSC54-CPP. Value-returning functions must return a value from all exit paths |
-Wunevaluated-expression | EXP52-CPP. Do not rely on side effects in unevaluated operands |
-Wvarargs | EXP58-CPP. Do not pass a reference or nontrivially copyable type to va_start |
> Include Page