View Issue Details

IDProjectCategoryView StatusLast Update
0032625Open CASCADEOCCT:Codingpublic2022-03-25 14:21
Reporterkgv Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionwon't fix 
Product Version7.5.0 
Target Version7.6.0 
Summary0032625: Coding Rules - eliminate VS 2022 IntelliSense warnings
DescriptionThe following warnings are generated by VS 2022 IntelliSense:

Severity	Code	Description	Project	File	Line	Suppression State
Warning	C26439	This kind of function may not throw. Declare it 'noexcept' (f.6).	DRAWEXE	C:\develop\occt.git\src\TCollection\TCollection_ExtendedString.hxx	106	
Warning	C28251	Inconsistent annotation for 'WinMain': this instance has no annotations. See c:\program files (x86)\windows kits\10\include\10.0.19041.0\um\winbase.h(1006). 	DRAWEXE	C:\develop\occt.git\src\DRAWEXE\DRAWEXE.cxx	257	
Warning	C26812	The enum type 'gp_TrsfForm' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).	DRAWEXE	C:\develop\occt.git\src\gp\gp_Trsf.hxx	192	
Warning	C26812	The enum type 'Message_MetricType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).	DRAWEXE	C:\develop\occt.git\src\Message\Message.hxx	109	
Warning	C26812	The enum type 'Message_Gravity' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).	DRAWEXE	C:\develop\occt.git\src\Message\Message_Printer.hxx	46	
Warning	C26495	Variable 'NCollection_BaseVector::Iterator::myVector' is uninitialized. Always initialize a member variable (type.6).	DRAWEXE	C:\develop\occt.git\src\NCollection\NCollection_BaseVector.hxx	71	
Warning	C26812	The enum type 'OSD_MemInfo::Counter' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).	DRAWEXE	C:\develop\occt.git\src\OSD\OSD_MemInfo.hxx	73	
Warning	C26812	The enum type 'Quantity_NameOfColor' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).	DRAWEXE	C:\develop\occt.git\src\Quantity\Quantity_Color.hxx	45	
Warning	C26439	This kind of function may not throw. Declare it 'noexcept' (f.6).	DRAWEXE	C:\develop\occt.git\src\Standard\Standard_Handle.hxx	75	
Warning	C26439	This kind of function may not throw. Declare it 'noexcept' (f.6).	DRAWEXE	C:\develop\occt.git\src\Standard\Standard_Handle.hxx	118	
Warning	C26451	Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).	DRAWEXE	C:\develop\occt.git\src\Standard\Standard_Real.hxx	261	
Warning	C26439	This kind of function may not throw. Declare it 'noexcept' (f.6).	DRAWEXE	C:\develop\occt.git\src\TCollection\TCollection_AsciiString.hxx	86	
Warning	C26439	This kind of function may not throw. Declare it 'noexcept' (f.6).	DRAWEXE	C:\develop\occt.git\src\TCollection\TCollection_AsciiString.hxx	290	
Warning	C26439	This kind of function may not throw. Declare it 'noexcept' (f.6).	DRAWEXE	C:\develop\occt.git\src\TCollection\TCollection_ExtendedString.hxx	163	
Warning	C26812	The enum type 'TopAbs_ShapeEnum' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).	DRAWEXE	C:\develop\occt.git\src\TopAbs\TopAbs.hxx	102	
Warning	C26812	The enum type 'TopAbs_Orientation' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).	DRAWEXE	C:\develop\occt.git\src\TopAbs\TopAbs.hxx	108	
Warning	C26439	This kind of function may not throw. Declare it 'noexcept' (f.6).	DRAWEXE	C:\develop\occt.git\src\TopLoc\TopLoc_SListOfItemLocation.hxx	76	
Warning	C26439	This kind of function may not throw. Declare it 'noexcept' (f.6).	DRAWEXE	C:\develop\occt.git\src\TopLoc\TopLoc_SListOfItemLocation.hxx	82	
Warning	C26812	The enum type 'TopoDS_TShape::TopoDS_TShape_Flags' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).	DRAWEXE	C:\develop\occt.git\src\TopoDS\TopoDS_TShape.hxx	169	
Steps To ReproduceN/A
TagsNo tags attached.
Test case number

Relationships

related to 0032624 closedsmoskvin Configuration, genproj - add support for VS 2022 / vc143 
child of 0032888 newbugmaster Configuration - Visual Studio 2022 bugs 

Activities

kgv

2021-10-15 21:56

developer   ~0104657

Please close the bug, created by an accident.

Issue History

Date Modified Username Field Change
2021-10-15 21:15 kgv New Issue
2021-10-15 21:15 kgv Assigned To => kgv
2021-10-15 21:16 kgv Relationship added related to 0032624
2021-10-15 21:56 kgv Note Added: 0104657
2021-10-15 21:56 kgv Assigned To kgv => bugmaster
2021-10-15 21:56 kgv Status new => feedback
2021-10-15 21:56 kgv Resolution open => won't fix
2021-10-15 21:56 kgv Summary Coding Rules - eliminate msvc143 compilation warnings => Coding Rules - eliminate VS 2022 IntelliSense warnings
2021-10-15 21:56 kgv Description Updated
2021-10-21 19:58 bugmaster Status feedback => closed
2022-03-25 14:21 kgv Relationship added child of 0032888