I am trying to integrate the community sonar-cxx plugin but I am not convinced I have integrated it correctly as I am finding no issues (except for a single duplicated block)
It is correctly reporting the number of lines as well and the c# integration continues to report the same issues as before so that's not broken.
If someone is able to check the command below and steer me in the right direction that would be great (I also tried the regex with single \ rather then double \\)
CodeCoverage_Support.cpp(21): warning C4278: 'ReportEvent': identifier in type library 'mscorlib.tlb' is already a macro; use the 'rename' qualifier [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
cl : Command line warning D9032: '-doc' : XML documentation comments are not supported by the C compiler [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
cl : Command line warning D9032: '-doc' : XML documentation comments are not supported by the C compiler [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
x64\Release\OpenCoverProfiler_i.xdc : warning XDC0006: file(s) not found [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
x64\Release\xdlldata.xdc : warning XDC0006: file(s) not found [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\codecoverage.cpp(28): warning C6031: Return value ignored: 'StringFromGUID2'. [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\codecoverage_support.cpp(45): warning C6387: 'hClrHookDllHGlb' could be '0': this does not adhere to the specification for the function 'LockResource'. [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\codecoverage_support.cpp(43): warning C6387: 'hClrHookDllRes' could be '0': this does not adhere to the specification for the function 'SizeofResource'. See line 40 for an earlier location where this can occur [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\codecoverage_support.cpp(40): warning C6387: 'hClrHookDllRes' could be '0': this does not adhere to the specification for the function 'LoadResource'. [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\codecoverage_support.cpp(57): warning C6102: Using 'lpArrayData' from failed function call at line '56'. [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\codecoverage_support.cpp(120): warning C6216: Compiler-inserted cast between semantically different integral types: a Boolean type to HRESULT. [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\codecoverage_support.cpp(98): warning C6102: Using 'ext' from failed function call at line '97'. [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\profilercommunication.cpp(562): warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
c:\projects\opencover.git\working\main\opencover.profiler\profilercommunication.cpp(567): warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. [C:\Projects\opencover.git\working\main\OpenCover.Profiler\OpenCover.Profiler.vcxproj]
Program.cs(75,61): warning CS0168: The variable 'eex' is declared but never used [C:\Projects\opencover.git\working\main\OpenCover.Console\OpenCover.Console.csproj]
Program.cs(379,30): warning CS0168: The variable 'ex' is declared but never used [C:\Projects\opencover.git\working\main\OpenCover.Console\OpenCover.Console.csproj]