summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-08-09 00:32:23 +0000
committerHans Wennborg <hans@hanshq.net>2013-08-09 00:32:23 +0000
commit708002ede3938256a6223d153a0c040f7a40f5cc (patch)
treea92d6d3a1a2debf58ffaa014af43c1feb52ebf87 /lib/Frontend/CompilerInvocation.cpp
parentc8e8e8faff9c21952cca04be664c8e25bd599300 (diff)
downloadclang-708002ede3938256a6223d153a0c040f7a40f5cc.tar.gz
clang-708002ede3938256a6223d153a0c040f7a40f5cc.tar.bz2
clang-708002ede3938256a6223d153a0c040f7a40f5cc.tar.xz
clang-cl: Support /showIncludes
This option prints information about #included files to stderr. Clang could already do it, this patch just teaches the existing code about the /showIncludes style and adds the flag. Differential Revision: http://llvm-reviews.chandlerc.com/D1333 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index f88c124f08..a4a84127c0 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -518,6 +518,7 @@ static void ParseDependencyOutputArgs(DependencyOutputOptions &Opts,
Opts.ShowHeaderIncludes = Args.hasArg(OPT_H);
Opts.HeaderIncludeOutputFile = Args.getLastArgValue(OPT_header_include_file);
Opts.AddMissingHeaderDeps = Args.hasArg(OPT_MG);
+ Opts.PrintShowIncludes = Args.hasArg(OPT_show_includes);
Opts.DOTOutputFile = Args.getLastArgValue(OPT_dependency_dot);
}