Fix for UBSan build
[platform/upstream/doxygen.git] / src / main.cpp
1 /******************************************************************************
2  *
3  * $Id: main.cpp,v 1.86 2001/01/01 10:15:16 root Exp $
4  *
5  *
6  * Copyright (C) 1997-2012 by Dimitri van Heesch.
7  *
8  * Permission to use, copy, modify, and distribute this software and its
9  * documentation under the terms of the GNU General Public License is hereby 
10  * granted. No representations are made about the suitability of this software 
11  * for any purpose. It is provided "as is" without express or implied warranty.
12  * See the GNU General Public License for more details.
13  *
14  * Documents produced by Doxygen are derivative works derived from the
15  * input used in their production; they are not affected by this license.
16  *
17  */
18
19 #include "doxygen.h"
20
21 /*! \file
22  *  \brief main entry point for doxygen
23  *
24  *  This file contains main()
25  */
26
27 /*! Default main. The idea of separating this from the rest of doxygen,
28  *  is to make it possible to write your own main, with a different 
29  *  generateOutput() function for instance.
30  */
31 int main(int argc,char **argv)
32 {
33   initDoxygen();
34   readConfiguration(argc,argv);
35   checkConfiguration();
36   adjustConfiguration();
37   parseInput();
38   generateOutput();
39   return 0;
40 }
41