From fae558debab1a30bfef98e36e2d0fdbf997210ba Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 14 May 2015 01:08:08 +0000 Subject: [PATCH] [modules] Work around PR23521 to fix -O0 modules bootstrap. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237325 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/module.modulemap | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/clang/module.modulemap b/include/clang/module.modulemap index 196a1fd3c0..6b77adb002 100644 --- a/include/clang/module.modulemap +++ b/include/clang/module.modulemap @@ -120,4 +120,11 @@ module Clang_StaticAnalyzer_Frontend { module * { export * } } -module Clang_Tooling { requires cplusplus umbrella "Tooling" module * { export * } } +module Clang_Tooling { + requires cplusplus umbrella "Tooling" module * { export * } + // FIXME: Exclude this header to avoid pulling all of the AST matchers + // library into clang-format. Due to inline key functions in the headers, + // importing the AST matchers library gives a link dependency on the AST + // matchers (and thus the AST), which clang-format should not have. + exclude header "Tooling/RefactoringCallbacks.h" +} -- 2.50.1