• Home
  • Raw
  • Download

Lines Matching +full:clang +full:- +full:tidy

35 #     script/make-pretty
39 # script/make-pretty clang
40 # script/make-pretty clang-format
41 # script/make-pretty clang-tidy
45 # script/make-pretty markdown
49 # script/make-pretty python
53 # script/make-pretty shell
57 # script/make-pretty check clang
58 # script/make-pretty check clang-format
59 # script/make-pretty check clang-tidy
60 # script/make-pretty check markdown
61 # script/make-pretty check python
62 # script/make-pretty check shell
65 set -euo pipefail
76 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
77 '-DOT_ANYCAST_LOCATOR=ON'
78 '-DOT_APP_RCP=OFF'
79 '-DOT_MTD=OFF'
80 '-DOT_RCP=OFF'
81 '-DOT_PLATFORM=simulation'
82 '-DOT_BACKBONE_ROUTER=ON'
83 '-DOT_BORDER_AGENT=ON'
84 '-DOT_BORDER_ROUTER=ON'
85 '-DOT_BORDER_ROUTING=ON'
86 '-DOT_BORDER_ROUTING_NAT64=ON'
87 '-DOT_CHANNEL_MANAGER=ON'
88 '-DOT_CHANNEL_MONITOR=ON'
89 '-DOT_CHILD_SUPERVISION=ON'
90 '-DOT_COAP=ON'
91 '-DOT_COAP_BLOCK=ON'
92 '-DOT_COAP_OBSERVE=ON'
93 '-DOT_COAPS=ON'
94 '-DOT_COMMISSIONER=ON'
95 '-DOT_CSL_RECEIVER=ON'
96 '-DOT_DATASET_UPDATER=ON'
97 '-DOT_DHCP6_CLIENT=ON'
98 '-DOT_DHCP6_SERVER=ON'
99 '-DOT_DIAGNOSTIC=ON'
100 '-DOT_DNS_CLIENT=ON'
101 '-DOT_DNS_DSO=ON'
102 '-DOT_DNSSD_SERVER=ON'
103 '-DOT_DUA=ON'
104 '-DOT_MLR=ON'
105 '-DOT_ECDSA=ON'
106 '-DOT_HISTORY_TRACKER=ON'
107 '-DOT_IP6_FRAGM=ON'
108 '-DOT_JAM_DETECTION=ON'
109 '-DOT_JOINER=ON'
110 '-DOT_LEGACY=ON'
111 '-DOT_LINK_RAW=ON'
112 '-DOT_LINK_METRICS_INITIATOR=ON'
113 '-DOT_LINK_METRICS_SUBJECT=ON'
114 '-DOT_MAC_FILTER=ON'
115 '-DOT_MTD_NETDIAG=ON'
116 '-DOT_NETDATA_PUBLISHER=ON'
117 '-DOT_PING_SENDER=ON'
118 '-DOT_REFERENCE_DEVICE=ON'
119 '-DOT_SERVICE=ON'
120 '-DOT_SLAAC=ON'
121 '-DOT_SNTP_CLIENT=ON'
122 '-DOT_SRP_CLIENT=ON'
123 '-DOT_SRP_SERVER=ON'
124 '-DOT_THREAD_VERSION=1.3'
125 '-DOT_TREL=ON'
126 '-DOT_COVERAGE=ON'
127 '-DOT_LOG_LEVEL_DYNAMIC=ON'
128 '-DOT_COMPILE_WARNING_AS_ERROR=ON'
129 '-DOT_UPTIME=ON'
133 -*,\
134 google-explicit-constructor,\
135 google-readability-casting,\
136 misc-unused-using-decls,\
137 modernize-use-bool-literals,\
138 modernize-use-equals-default,\
139 modernize-use-equals-delete,\
140 modernize-use-nullptr,\
141 readability-avoid-const-params-in-decls,\
142 readability-else-after-return,\
143 readability-inconsistent-declaration-parameter-name,\
144 readability-make-member-function-const,\
145 readability-redundant-member-init,\
146 readability-simplify-boolean-expr,\
147 readability-static-accessed-through-instance,\
150 #performance-for-range-copy\
154 echo -e '========================================'
155 echo -e ' format c/c++ (clang-format)'
156 echo -e '========================================'
158 …git ls-files "${OT_CLANG_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|')…
159 | xargs -n3 -P"$OT_BUILD_JOBS" script/clang-format -style=file -i -verbose
164 echo -e '========================================'
165 echo -e ' check c/c++ (clang-format)'
166 echo -e '========================================'
168 …git ls-files "${OT_CLANG_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|')…
169 | xargs -n3 -P"$OT_BUILD_JOBS" script/clang-format-check
174 echo -e '========================================'
175 echo -e ' format c/c++ (clang-tidy)'
176 echo -e '========================================'
178 (mkdir -p ./build/cmake-tidy \
179 && cd ./build/cmake-tidy \
181 …&& ../../script/clang-tidy -header-filter='.*' -checks="${OT_CLANG_TIDY_CHECKS}" -j"$OT_BUILD_JOBS…
186 echo -e '========================================'
187 echo -e ' check c/c++ (clang-tidy)'
188 echo -e '========================================'
191 mkdir -p ./build/cmake-tidy \
192 && cd ./build/cmake-tidy \
194 …&& ../../script/clang-tidy -header-filter='.*' -checks="${OT_CLANG_TIDY_CHECKS}" -j"$OT_BUILD_JOBS…
195 | grep -v -E "third_party" >output.txt
196 if grep -q "warning: \|error: " output.txt; then
197 echo "You must pass the clang tidy checks before submitting a pull request"
199 grep --color -E 'warning: |error: ' -A 5 output.txt
207 echo -e '========================================'
208 echo -e ' format markdown'
209 echo -e '========================================'
211 …git ls-files "${OT_MARKDOWN_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '…
212 | xargs -n10 -P"$OT_BUILD_JOBS" npx prettier@2.0.4 --write
217 echo -e '========================================'
218 echo -e ' check markdown'
219 echo -e '========================================'
221 …git ls-files "${OT_MARKDOWN_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '…
222 | xargs -n10 -P"$OT_BUILD_JOBS" npx prettier@2.0.4 --check
227 echo -e '========================================'
228 echo -e ' format python'
229 echo -e '========================================'
231 …git ls-files "${OT_PYTHON_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'…
232 …| xargs -n10 -P"$OT_BUILD_JOBS" python3 -m yapf --verbose --style '{based_on_style: google, column…
237 echo -e '========================================'
238 echo -e ' check python'
239 echo -e '========================================'
241 …git ls-files "${OT_PYTHON_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'…
242 …| xargs -n10 -P"$OT_BUILD_JOBS" python3 -m yapf --verbose --style '{based_on_style: google, column…
247 echo -e '========================================'
248 echo -e ' format shell'
249 echo -e '========================================'
251 git ls-files | xargs shfmt -f | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'))" \
252 | xargs -n10 -P"$OT_BUILD_JOBS" shfmt -i 4 -bn -ci -fn -s -w
257 echo -e '========================================'
258 echo -e ' check shell'
259 echo -e '========================================'
261 git ls-files | xargs shfmt -f | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'))" \
262 | xargs -n10 -P"$OT_BUILD_JOBS" shfmt -i 4 -bn -ci -fn -s -d
264 git ls-files | xargs shfmt -f | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'))" \
265 | xargs -n10 -P"$OT_BUILD_JOBS" shellcheck
276 elif [ "$1" == 'clang' ]; then
279 elif [ "$1" == 'clang-format' ]; then
281 elif [ "$1" == 'clang-tidy' ]; then
290 echo >&2 "Unsupported check: $1. Supported: clang, markdown, python, shell"
304 elif [ "$1" == 'clang' ]; then
307 elif [ "$1" == 'clang-format' ]; then
309 elif [ "$1" == 'clang-tidy' ]; then
321 echo >&2 "Unsupported action: $1. Supported: clang, markdown, python, shell"