Вы находитесь на странице: 1из 4

R&D

PVS-Studio
:
: 06.11.2012
, PVSStudio. ,
.
. . ,
, .
.

PVS-Studio Visual Studio,


. ,
. Visual
Studio:

PVS-Studio .
Visual C++. Clang,
- Visual C++.
PVS-Studio .vcproj/.vcxproj ,
. , #define/#include, ,
..
, PVS-Studio .vcproj/.vcxproj ,
.

, , PVS-Studio
Visual Studio. .

?
, PVS-Studio.
-, PVS-Studio ,
( makefile, ). ,
. Visual Studio
.
-, cl.exe Clang,
PVS-Studio. Clang.
- , Clang , cl.exe. , Clang
, cl.exe. , cl.exe .
.

?
, :
1. ,
makefile .vcxproj ?
? : " ?"
2. ( )
?
3.
.
,
PVS-Studio.exe (*.c, *.cpp, *.cxx
..). , ,
Visual Studio.

, ?
WinMerge, .
Visual Studio , PVS-Studio 270
, .vcproj. , WinMerge 500 ,
( .h-). , , ,
. , : "
", ! WinMerge
.
, ,
" ", , .
.
. ,
: " #include- -".
.h- , . ,
include-. ,
? #include.
, .
, #include-
. cl.exe
response file, Clang .
, #include-,
.
, .

#include- . : " , , , ,
, . !"

. , Visual Studio
. ? ,
? - stdafx.h ... stdafx.h
, stdafx.h
.
stdafx.h ,

.
. "
" - ( makefile vcproj)
:
1. "" ,
. ,
"" .
2. #include
.
- ,
.

,
, ,
.
#include-, #define-,
. ?
, "/J" cl.exe:

/J (Default char Type Is unsigned)

, ? , ,
, :

/Za, /Ze (Disable Language Extensions)


()
.
,
. , #define . ,
#ifdef-. .
, 100% - #include-.

, .
- (,

), . ,
#include- .

, ?
, . -
, ? -
"" , .. .
.
. PVS-Studio.exe .cpp- " "
. .
,
. ( " "),
, , , .h-. -
. , - . , , , . , -,
, - , " "
, .
, ? .
.

. - , ,
,
.
.

( ,
):

, " " .
-, . -, -
-

.
, .
#include- , #define-.
.
-
.

Вам также может понравиться