Index: clang-tools-extra/test/pp-trace/pp-trace-include.cpp =================================================================== --- clang-tools-extra/test/pp-trace/pp-trace-include.cpp +++ clang-tools-extra/test/pp-trace/pp-trace-include.cpp @@ -39,13 +39,13 @@ // CHECK-NEXT: Reason: EnterFile // CHECK-NEXT: FileType: C_User // CHECK-NEXT: PrevFID: (invalid) -// CHECK: - Callback: MacroDefined // CHECK: - Callback: FileChanged // CHECK-NEXT: Loc: ":1:1" // CHECK-NEXT: Reason: ExitFile // CHECK-NEXT: FileType: C_User // CHECK-NEXT: PrevFID: (invalid) -// CHECK-NEXT: - Callback: FileChanged +// CHECK: - Callback: MacroDefined +// CHECK: - Callback: FileChanged // CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-include.cpp:1:1" // CHECK-NEXT: Reason: ExitFile // CHECK-NEXT: FileType: C_User Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -661,6 +661,9 @@ def D : JoinedOrSeparate<["-"], "D">, Group, Flags<[CC1Option, FlangOption, FC1Option]>, MetaVarName<"=">, HelpText<"Define to (or 1 if omitted)">; +def driver_define : Joined<["-"], "driver-define">, Group, + Flags<[CC1Option, NoDriverOption]>, MetaVarName<"=">, + HelpText<"Define to (or 1 if omitted)">; def E : Flag<["-"], "E">, Flags<[NoXarchOption,CC1Option, FlangOption, FC1Option]>, Group, HelpText<"Only run the preprocessor">; def F : JoinedOrSeparate<["-"], "F">, Flags<[RenderJoined,CC1Option]>, @@ -769,6 +772,8 @@ MetaVarName<"