Ho lokolloa ha static analyzer cppcheck 2.1

Fumaneha tokollo e ncha ea mahala static analyzer cppcheck 2.1, e u lumellang hore u khetholle lihlopha tse fapaneng tsa liphoso ka khoutu ka lipuo tsa C le C ++, ho kenyelletsa le ha u sebelisa syntax e sa tloaelehang, e tloaelehileng bakeng sa litsamaiso tse kentsoeng. Ho fanoa ka pokello ea li-plugins tseo ka tsona cppcheck e kopantsoeng le mefuta e fapaneng ea nts'etsopele, kopanyo e tsoelang pele le litsamaiso tsa liteko, hape e fana ka likarolo tse kang. lekola tumellano ya khoutu le setaele sa ho fometa khoutu. Ho arola khoutu, o ka sebelisa sekhetho sa hau kapa sehlahlobi sa kantle se tsoang ho Clang. E boetse e kenyelletsa mongolo oa donate-cpu.py ho fana ka lisebelisoa tsa lehae ho etsa mosebetsi oa kopanelo oa tlhahlobo ea khoutu bakeng sa liphutheloana tsa Debian. Mehloli ea morero ajoa ke e nang le laesense tlasa GPLv3.

Tsoelo-pele ea cppcheck e tsepamisitse maikutlo ho khetholla mathata a amanang le boitšoaro bo sa hlalosoang le tšebeliso ea meralo e kotsi ho tloha sebakeng sa polokeho. Sepheo hape ke ho fokotsa maikutlo a fosahetseng. Har'a tsebahatsoa mathata: lisupa ho lintho tse seng teng, likarohano ka zero, palo e felletseng, ts'ebetso e fosahetseng, liphetoho tse fosahetseng, mathata ha u sebetsa ka mohopolo, ts'ebeliso e fosahetseng ea STL, ho hlakola lintlha tse se nang letho, ho sebelisa licheke ka mor'a phihlello ea 'nete ho buffer. ho feta meeli ea buffer, ho sebelisoa mefuta e sa tsejoeng.

Source: opennet.ru

Eketsa ka tlhaloso