clang -cc1 -cc1 -triple x86_64-pc-linux-gnu -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name elevation.c -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/var/lib/jenkins/workspace/scan-build-libcss -fcoverage-compilation-dir=/var/lib/jenkins/workspace/scan-build-libcss -resource-dir /usr/lib/llvm-19/lib/clang/19 -D _BSD_SOURCE -D _DEFAULT_SOURCE -I /var/lib/jenkins/workspace/scan-build-libcss/include/ -I /var/lib/jenkins/workspace/scan-build-libcss/src -D _ALIGNED=__attribute__((aligned)) -D STMTEXPR=1 -D DEBUG -I /var/lib/jenkins/artifacts-x86_64-linux-gnu/include -internal-isystem /usr/lib/llvm-19/lib/clang/19/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Og -Wwrite-strings -Wno-error -std=c99 -fconst-strings -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -analyzer-display-progress -analyzer-output=html -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /var/lib/jenkins/workspace/scan-build-libcss/clangScanBuildReports/2025-11-29-162650-2786852-1 -x c src/select/properties/elevation.c
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | #include "bytecode/bytecode.h" |
| 9 | #include "bytecode/opcodes.h" |
| 10 | #include "select/propset.h" |
| 11 | #include "select/propget.h" |
| 12 | #include "utils/utils.h" |
| 13 | |
| 14 | #include "select/properties/properties.h" |
| 15 | #include "select/properties/helpers.h" |
| 16 | |
| 17 | css_error css__cascade_elevation(uint32_t opv, css_style *style, |
| 1 | [debug] analyzing from css__cascade_elevation | |
|
| 18 | css_select_state *state) |
| 19 | { |
| 20 | css_fixed val = 0; |
| 21 | uint32_t unit = UNIT_DEG; |
| 22 | |
| 23 | if (hasFlagValue(opv) == false) { |
| 24 | switch (getValue(opv)) { |
| 25 | case ELEVATION_ANGLE: |
| 26 | val = *((css_fixed *) style->bytecode); |
| 2 | | Value stored to 'val' is never read |
|
| 27 | advance_bytecode(style, sizeof(val)); |
| 28 | |
| 29 | unit = *((uint32_t *) style->bytecode); |
| 30 | advance_bytecode(style, sizeof(unit)); |
| 31 | break; |
| 32 | case ELEVATION_BELOW: |
| 33 | case ELEVATION_LEVEL: |
| 34 | case ELEVATION_ABOVE: |
| 35 | case ELEVATION_HIGHER: |
| 36 | case ELEVATION_LOWER: |
| 37 | |
| 38 | break; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | unit = css__to_css_unit(unit); |
| 43 | |
| 44 | if (css__outranks_existing(getOpcode(opv), isImportant(opv), state, |
| 45 | getFlagValue(opv))) { |
| 46 | |
| 47 | } |
| 48 | |
| 49 | return CSS_OK; |
| 50 | } |
| 51 | |
| 52 | css_error css__set_elevation_from_hint(const css_hint *hint, |
| 53 | css_computed_style *style) |
| 54 | { |
| 55 | UNUSED(hint); |
| 56 | UNUSED(style); |
| 57 | |
| 58 | return CSS_OK; |
| 59 | } |
| 60 | |
| 61 | css_error css__initial_elevation(css_select_state *state) |
| 62 | { |
| 63 | UNUSED(state); |
| 64 | |
| 65 | return CSS_OK; |
| 66 | } |
| 67 | |
| 68 | css_error css__copy_elevation( |
| 69 | const css_computed_style *from, |
| 70 | css_computed_style *to) |
| 71 | { |
| 72 | UNUSED(from); |
| 73 | UNUSED(to); |
| 74 | |
| 75 | return CSS_OK; |
| 76 | } |
| 77 | |
| 78 | css_error css__compose_elevation(const css_computed_style *parent, |
| 79 | const css_computed_style *child, |
| 80 | css_computed_style *result) |
| 81 | { |
| 82 | UNUSED(parent); |
| 83 | UNUSED(child); |
| 84 | UNUSED(result); |
| 85 | |
| 86 | return CSS_OK; |
| 87 | } |
| 88 | |