mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 04:06:07 +00:00

Re-introduce r285411. Implement the -dI as supported by GCC: Output ‘#include’ directives in addition to the result of preprocessing. This change aims to add this option, pass it through to the preprocessor via the options class, and when inclusions occur we output some information (+ test cases). Patch by Steve O'Brien! Differential Revision: https://reviews.llvm.org/D26089 llvm-svn: 287275
12 lines
396 B
C
12 lines
396 B
C
// RUN: %clang_cc1 -w -E -dI -isystem %S -imacros %S/dump_include.h %s -o - | FileCheck %s
|
|
// CHECK: {{^}}#__include_macros "{{.*}}dump_
|
|
// CHECK: {{^}}#include <dump_
|
|
// CHECK: {{^}}#include "dump_
|
|
// CHECK: {{^}}#include_next "dump_
|
|
|
|
// See also `dump_import.m` which tests the `#import` directive with `-dI`.
|
|
|
|
#include <dump_include.h>
|
|
#include "dump_include.h"
|
|
#include_next "dump_include.h"
|