]> granicus.if.org Git - clang/commitdiff
[modules] Work around PR23521 to fix -O0 modules bootstrap.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 14 May 2015 01:08:08 +0000 (01:08 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 14 May 2015 01:08:08 +0000 (01:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237325 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/module.modulemap

index 196a1fd3c012a4b5c0992bf9e0f80e52aa0d470b..6b77adb0027d96eeebb21304c4e6e619131945b1 100644 (file)
@@ -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"
+}