From: Richard Smith Date: Thu, 14 May 2015 01:08:08 +0000 (+0000) Subject: [modules] Work around PR23521 to fix -O0 modules bootstrap. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fae558debab1a30bfef98e36e2d0fdbf997210ba;p=clang [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 --- 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" +}