Lines Matching +full:include +full:- +full:dirs
2 include(${ZEPHYR_BASE}/cmake/compiler/gcc/compiler_flags.cmake)
10 # No printf-return-value optimizations in clang
14 # But clang has problems compiling these with -fno-freestanding.
19 set_compiler_property(PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping)
21 set_compiler_property(PROPERTY coverage --coverage -fno-inline)
25 set_compiler_property(PROPERTY diagnostic -fcolor-diagnostics)
28 set_compiler_property(PROPERTY save_temps -save-temps)
30 # clang doesn't handle the -T flag
31 set_compiler_property(PROPERTY linker_script -Wl,-T)
39 -Wall
40 -Wformat
41 -Wformat-security
42 -Wno-format-zero-length
43 -Wno-unused-but-set-variable
44 -Wno-typedef-redefinition
45 -Wno-deprecated-non-prototype
49 check_set_compiler_property(APPEND PROPERTY warning_base -Wdouble-promotion)
51 check_set_compiler_property(APPEND PROPERTY warning_base -Wno-pointer-sign)
54 check_set_compiler_property(APPEND PROPERTY warning_base -Wpointer-arith)
56 # clang options for warning levels 1, 2, 3, when using `-DW=[1|2|3]`
58 -Wextra
59 -Wunused
60 -Wno-unused-parameter
61 -Wmissing-declarations
62 -Wmissing-format-attribute
65 -Wold-style-definition
66 -Wmissing-prototypes
67 -Wmissing-include-dirs
68 -Wunused-but-set-variable
69 -Wno-missing-field-initializers
73 -Waggregate-return
74 -Wcast-align
75 -Wdisabled-optimization
76 -Wnested-externs
77 -Wshadow
81 -Wlogical-op
82 -Wmissing-field-initializers
86 -Wbad-function-cast
87 -Wcast-qual
88 -Wconversion
89 -Wpacked
90 -Wpadded
91 -Wpointer-arith
92 -Wredundant-decls
93 -Wswitch-default
97 -Wpacked-bitfield-compat
98 -Wvla
104 -Wno-sometimes-uninitialized
105 -Wno-shift-overflow
106 -Wno-missing-braces
107 -Wno-self-assign
108 -Wno-address-of-packed-member
109 -Wno-unused-function
110 -Wno-initializer-overrides
111 -Wno-section
112 -Wno-unknown-warning-option
113 -Wno-unused-variable
114 -Wno-format-invalid-specifier
115 -Wno-gnu
117 -Wno-tautological-compare
121 -Werror=vla
122 -Wimplicit-fallthrough
123 -Wconversion
124 -Woverride-init
127 set_compiler_property(PROPERTY no_global_merge "-mno-global-merge")