clang-tidy is a clang-based C++ "linter" tool. Nws lub hom phiaj yog los muab lub moj khaum ntxiv rau kev kuaj mob thiab kho cov kev ua haujlwm tsis raug, xws li kev ua txhaum cai, kev siv tsis raug, lossis kab laum uas tuaj yeem txiav tawm los ntawm kev tshuaj xyuas zoo li qub.
Clang-tidy zoo?
clang-tidy is not really a novelty rau leej twg siv clang-analyzer. Qhov tseeb, nws tsuas yog yooj yim dua pem hauv ntej-kawg rau qhov paub zoo tias clang static-analyzer. Tab sis, nws tsim nyog siv nws kom nrawm nrawm koj cov peev txheej nrhiav cov kab uas yuav pom los ntawm cov tshev no.
Qhov txawv ntawm Clang-format thiab Clang-tidy yog dab tsi?
clang-format kinda ua li nws hais - parses koj cov cai, ces indents thiab spaces nws raws li txoj cai. … np. https://clang.llvm.org/extra/clang-tidy/checks/bugprone-stri… Koj muaj peev xwm khiav 'clang-tidy -fix' kom automate kho ntau yam uas nws yuav chij.
Clang-tidy C++ yog dab tsi?
Clang-tidy yog ib lub cuab yeej nyob ib leeg rau kev tshuaj xyuas C thiab C ++ qhov chaws cov ntaub ntawv. Nws muab cov txheej txheem ntxiv ntawm cov lus ceeb toom-hu ua cov tshev-uas mus rau saum toj thiab dhau qhov uas feem ntau suav nrog hauv C lossis C ++ compiler. … Clang-tidy siv tib lub tsev qiv ntawv pem hauv ntej raws li Clang C lus compiler.
Clang-format yog dab tsi?
Clang-Format is a dav-siv C++ code formatter. Raws li nws muab ib qho kev xaiv los txhais cov cai style xaiv hauv YAML-formatted cov ntaub ntawv -npe. clang-format lossis _clang-format - cov ntaub ntawv no feem ntau dhau los ua ib feem ntawm koj qhov project uas koj khaws tag nrho cov cai style.