13
beta.c
gamma.c
then use:
lin alphabet
to lint the entire project. You may place options within alphabet.lnt but this is not
recommended because if you then do a unit checkout on individual modules, you will not receive
the benefits of these options. Better, place project-independent options in a centralized file; we
have started you off with the file
options.lnt for this purpose. Project-specific options can be
placed in a file called
std.lnt in your project directory. This std.lnt should be an
augmentation of the centralized
std.lnt. This is further described in Section 16.2
Recommended Setup.
3.5 Integrating With Your Environment
PC-lint has been flexibly designed so that you should have no difficulty integrating it with your
favorite Integrated Development Environment (IDE), or smart editor. The advantages are that
you will be able to launch PC-lint with a minimum number of keystrokes to process your current
file or your current project. Upon completion, moreover, you will be able, in most cases, to
quickly and automatically sequence from error to error (actually message to message) with
hopefully a single keystroke and with your own editor appropriately positioned in the file that
needs attention.
We, of course, could have provided our own environment but we felt you probably would prefer
to continue using your existing environment with your favorite editor. Hence, we have focused
our attention on facilities to bring that about. In particular, our message formatting is extremely
flexible (See Section 5.6 Message Presentation Options). Message redirection is available not
only via the standard redirection character (>) on the command line but may also be embedded as
an option (see
-os(file) in Section 5.7 Other Options). The banner line can be controlled (see
-b in Section 5.7 Other Options) and it can be arranged so that at least one message is always
produced (using option
+e900) which is necessary for some environments. In addition, indirect
files (
.lnt files) can themselves contain indirect files. The file name extension, by which an
indirect file is known as such, can be something other than .lnt (See +ext in Section 5.7 Other
Options). Indirect files can contain embedded environment variable names (Section 4.1 Indirect
(.lnt) Files).
We have added a number of files of the form
env-....lnt that assist in the process of integration
with particular IDE's. These files are updated as needed. See our web site (under Version 9.00
patches) for the most current.
Instructions for using these
.lnt files appear as comments within the files themselves. Simply
print them out and follow the directions.