OSDN Git Service

add include files from llvm used by subzero into doxygen
authorReed Kotler <rkotlerimgtec@gmail.com>
Fri, 18 Dec 2015 00:34:00 +0000 (16:34 -0800)
committerJim Stichnoth <stichnot@chromium.org>
Fri, 18 Dec 2015 00:34:00 +0000 (16:34 -0800)
this fixes a lot of problems with the doxygen. for example
with this, now doxygen correctly understands the cl::opt
variables in ClFlags.cpp as variables, whereas previously
it thought they were functions.

it's possible to make the llvm includes more selective but
this is a good first cut and better than including all
of llvm includes.

BUG=
R=stichnot@chromium.org

Review URL: https://codereview.chromium.org/1536773003 .

Patch from Reed Kotler <rkotlerimgtec@gmail.com>.

Doxyfile

index 167e8fa..0fec183 100644 (file)
--- a/Doxyfile
+++ b/Doxyfile
@@ -298,7 +298,7 @@ AUTOLINK_SUPPORT       = YES
 # diagrams that involve STL classes more complete and accurate.
 # The default value is: NO.
 
-BUILTIN_STL_SUPPORT    = NO
+BUILTIN_STL_SUPPORT    = YES
 
 # If you use Microsoft's C++/CLI language, you should set this option to YES to
 # enable parsing support.
@@ -743,7 +743,13 @@ WARN_LOGFILE           =
 # spaces.
 # Note: If this tag is empty the current directory is searched.
 
-INPUT                  = "src"
+INPUT                  = "src" \
+                         "../llvm/include/llvm/ADT" \
+                         "../llvm/include/llvm/Bitcode" \
+                         "../llvm/include/llvm/Config" \
+                         "../llvm/include/llvm/IR" \
+                         "../llvm/include/llvm/IRReader" \
+                         "../llvm/include/llvm/Support"
 
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -769,7 +775,7 @@ FILE_PATTERNS          =
 # be searched for input files as well.
 # The default value is: NO.
 
-RECURSIVE              = NO
+RECURSIVE              = YES
 
 # The EXCLUDE tag can be used to specify files and/or directories that should be
 # excluded from the INPUT source files. This way you can easily exclude a
@@ -1927,7 +1933,7 @@ SEARCH_INCLUDES        = YES
 # preprocessor.
 # This tag requires that the tag SEARCH_INCLUDES is set to YES.
 
-INCLUDE_PATH           =
+INCLUDE_PATH           = ../llvm/include
 
 # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
 # patterns (like *.h and *.hpp) to filter out the header-files in the