mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 19:24:36 +03:00
Update 02-Use_the_Tools_Available.md
This commit is contained in:
@@ -102,25 +102,25 @@ Consider using `-Weverything` and disabling the few warnings you need to on Clan
|
|||||||
`/W4 /W44640` - use these and consider the following
|
`/W4 /W44640` - use these and consider the following
|
||||||
|
|
||||||
* `/W4` All reasonable warnings
|
* `/W4` All reasonable warnings
|
||||||
* [`/w14242`](https://msdn.microsoft.com/en-us/library/3hca13eh.aspx) 'identfier': conversion from 'type1' to 'type1', possible loss of data
|
* `/w14242` 'identfier': conversion from 'type1' to 'type1', possible loss of data
|
||||||
* [`/w14254`](https://msdn.microsoft.com/en-us/library/3fbf7w04.aspx) 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data
|
* `/w14254` 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data
|
||||||
* [`/w14263`](https://msdn.microsoft.com/en-us/library/ay4h0tc9.aspx) 'function': member function does not override any base class virtual member function
|
* `/w14263` 'function': member function does not override any base class virtual member function
|
||||||
* [`/w14265`](https://msdn.microsoft.com/en-us/library/wzxffy8c.aspx) 'classname': class has virtual functions, but destructor is not virtual instances of this class may not be destructed correctly
|
* `/w14265` 'classname': class has virtual functions, but destructor is not virtual instances of this class may not be destructed correctly
|
||||||
* [`/w14287`](https://msdn.microsoft.com/en-us/library/33s0was4.aspx) 'operator': unsigned/negative constant mismatch
|
* `/w14287` 'operator': unsigned/negative constant mismatch
|
||||||
* [`/we4289`](https://msdn.microsoft.com/en-us/library/06d758c0.aspx) nonstandard extension used: 'variable': loop control variable declared in the for-loop is used outside the for-loop scope
|
* `/we4289` nonstandard extension used: 'variable': loop control variable declared in the for-loop is used outside the for-loop scope
|
||||||
* [`/w14296`](https://msdn.microsoft.com/en-us/library/wz2y40yt.aspx) 'operator': expression is always 'boolean_value'
|
* `/w14296` 'operator': expression is always 'boolean_value'
|
||||||
* [`/w14311`](https://msdn.microsoft.com/en-us/library/4t91x2k5.aspx) 'variable': pointer truncation from 'type1' to 'type2'
|
* `/w14311` 'variable': pointer truncation from 'type1' to 'type2'
|
||||||
* [`/w14545`](https://msdn.microsoft.com/en-us/library/s2xatszb.aspx) expression before comma evaluates to a function which is missing an argument list
|
* `/w14545` expression before comma evaluates to a function which is missing an argument list
|
||||||
* [`/w14546`](https://msdn.microsoft.com/en-us/library/7be2hd1z.aspx) function call before comma missing argument list
|
* `/w14546` function call before comma missing argument list
|
||||||
* [`/w14547`](https://msdn.microsoft.com/en-us/library/y1724hsf.aspx) 'operator': operator before comma has no effect; expected operator with side-effect
|
* `/w14547` 'operator': operator before comma has no effect; expected operator with side-effect
|
||||||
* [`/w14549`](https://msdn.microsoft.com/en-us/library/60yhzzeh.aspx) 'operator': operator before comma has no effect; did you intend 'operator'?
|
* `/w14549` 'operator': operator before comma has no effect; did you intend 'operator'?
|
||||||
* [`/w14555`](https://msdn.microsoft.com/en-us/library/k64a6he5.aspx) expression has no effect; expected expression with side-effect
|
* `/w14555` expression has no effect; expected expression with side-effect
|
||||||
* [`/w14619`](https://msdn.microsoft.com/en-us/library/tacee08d.aspx) #pragma warning: there is no warning number 'number'
|
* `/w14619` \#pragma warning: there is no warning number 'number'
|
||||||
* [`/w14640`](https://msdn.microsoft.com/en-us/library/4f5c8560.aspx) Enable warning on thread un-safe static member initialization
|
* `/w14640` Enable warning on thread un-safe static member initialization
|
||||||
* [`/w14826`](https://msdn.microsoft.com/en-us/library/ms235307.aspx) Conversion from 'type1' to 'type_2' is sign-extended. This may cause unexpected runtime behavior.
|
* `/w14826` Conversion from 'type1' to 'type_2' is sign-extended. This may cause unexpected runtime behavior.
|
||||||
* [`/w14905`](https://msdn.microsoft.com/en-us/library/zayh85yw.aspx) wide string literal cast to 'LPSTR'
|
* `/w14905` wide string literal cast to 'LPSTR'
|
||||||
* [`/w14906`](https://msdn.microsoft.com/en-us/library/ae10z5cb.aspx) string literal cast to 'LPWSTR'
|
* `/w14906` string literal cast to 'LPWSTR'
|
||||||
* [`/w14928`](https://msdn.microsoft.com/en-us/library/cwck4ta9.aspx) illegal copy-initialization; more than one user-defined conversion has been implicitly applied
|
* `/w14928` illegal copy-initialization; more than one user-defined conversion has been implicitly applied
|
||||||
|
|
||||||
Not recommended
|
Not recommended
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user