Tags » Cpp

An Overview of Static Analyzers for C/C++ Code

C and C++ programmers tend to make mistakes when writing code.

Many of these mistakes can be found using -Wall, asserts, tests, meticulous code review, IDE warnings, building with different compilers for different operating systems running on different hardware configurations, and the like. 1,425 more words

Cpp

Which programming language should i learn first?

Nếu bạn vẫn còn đang thắc mắc không biết phải học ngôn ngữ lập trình nào đầu tiên?

Hay phải bắt đầu, tiếp tục ra sao khi đã có một lượng kiến thức nhất định?

90 more words
Programming

On the Offer of Four Cabinet Posts

President-elect Rodrigo Duterte has offered four cabinet posts to the Communist Party of the Philippines (CPP). They are that of : DOLE (Department of Labor and Employment),  DAR (Department of Agrarian Reform), DSWD (Department of Social Work and Development) and DENR (Department of the Environment and Natural Resources).  1,167 more words

Philippines

Remember that an exception in the destructor is dangerous

This issue was found in LibreOffice project. The error is detected by the following diagnostic: V509 The ‘dynamic_cast<T&>’ operator should be located inside the try..catch block, as it could potentially generate an exception. 515 more words

Cpp

Do not call the alloca() function inside loops

This bug was found in Pixie project. The error is detected by the following diagnostic: V505 The ‘alloca’ function is used inside the loop. This can quickly overflow stack. 396 more words

Cpp

Check all the fragments where a pointer is explicitly cast to integer types

The fragment is taken from IPP Samples project. The error is detected by the following diagnostic: V205 Explicit conversion of pointer type to 32-bit integer type: (unsigned long)(img) 720 more words

Cpp

Use available tools to analyze your code

The fragment is taken from LibreOffice project. The error is detected by the following diagnostic: V718 The ‘CreateThread’ function should not be called from ‘DllMain’ function. 828 more words

Cpp