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 llvm-svn: 188037
This commit is contained in:
@@ -259,7 +259,7 @@ void CompilerInstance::createPreprocessor() {
|
||||
AttachDependencyGraphGen(*PP, DepOpts.DOTOutputFile,
|
||||
getHeaderSearchOpts().Sysroot);
|
||||
|
||||
|
||||
|
||||
// Handle generating header include information, if requested.
|
||||
if (DepOpts.ShowHeaderIncludes)
|
||||
AttachHeaderIncludeGen(*PP);
|
||||
@@ -270,6 +270,11 @@ void CompilerInstance::createPreprocessor() {
|
||||
AttachHeaderIncludeGen(*PP, /*ShowAllHeaders=*/true, OutputPath,
|
||||
/*ShowDepth=*/false);
|
||||
}
|
||||
|
||||
if (DepOpts.PrintShowIncludes) {
|
||||
AttachHeaderIncludeGen(*PP, /*ShowAllHeaders=*/false, /*OutputPath=*/"",
|
||||
/*ShowDepth=*/true, /*MSStyle=*/true);
|
||||
}
|
||||
}
|
||||
|
||||
// ASTContext
|
||||
|
||||
Reference in New Issue
Block a user