diff options
| author | Hans Wennborg <hans@hanshq.net> | 2013-08-09 00:32:23 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2013-08-09 00:32:23 +0000 |
| commit | 0fd6207d3779b57566b7eb2a28e335d681549a33 (patch) | |
| tree | a6732f1201adcabcf8c22a7776070fa35ce4a819 /clang/test | |
| parent | 91555bde88dd991b60f4bf467dae74c6ce4f7bfd (diff) | |
| download | bcm5719-llvm-0fd6207d3779b57566b7eb2a28e335d681549a33.tar.gz bcm5719-llvm-0fd6207d3779b57566b7eb2a28e335d681549a33.zip | |
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
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/cl-options.c | 5 | ||||
| -rw-r--r-- | clang/test/Frontend/print-header-includes.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index f9f5c371364..f10141b8244 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -59,6 +59,9 @@ // RUN: %clang_cl /P -### -- %s 2>&1 | FileCheck -check-prefix=P %s // P: -E +// RUN: %clang_cl /showIncludes -### -- %s 2>&1 | FileCheck -check-prefix=showIncludes %s +// showIncludes: --show-includes + // RUN: %clang_cl /Umymacro -### -- %s 2>&1 | FileCheck -check-prefix=U %s // RUN: %clang_cl /U mymacro -### -- %s 2>&1 | FileCheck -check-prefix=U %s // U: "-U" "mymacro" @@ -97,4 +100,4 @@ // RUN: %clang_cl /Zs /EHsc /Fdfoo /fp:precise /Gd /GL /GL- -- %s 2>&1 // RUN: %clang_cl /Zs /Gm /Gm- /GS /Gy /Gy- /GZ -- %s 2>&1 // RUN: %clang_cl /Zs /RTC1 /wfoo /Zc:wchar_t- -- %s 2>&1 -// RUN: %clang_cl /Zs /ZI /Zi /showIncludes -- %s 2>&1 +// RUN: %clang_cl /Zs /ZI /Zi -- %s 2>&1 diff --git a/clang/test/Frontend/print-header-includes.c b/clang/test/Frontend/print-header-includes.c index 7773d2069d9..aa3e3971fd1 100644 --- a/clang/test/Frontend/print-header-includes.c +++ b/clang/test/Frontend/print-header-includes.c @@ -5,4 +5,11 @@ // CHECK: . {{.*test.h}} // CHECK: .. {{.*test2.h}} +// RUN: %clang_cc1 -include Inputs/test3.h -E --show-includes -o %t.out %s 2> %t.err +// RUN: FileCheck --check-prefix=MS < %t.err %s +// MS-NOT: test3.h +// MS: Note: including file: {{.*test.h}} +// MS: Note: including file: {{.*test2.h}} +// MS-NOT: Note + #include "Inputs/test.h" |

