r237325 - [modules] Work around PR23521 to fix -O0 modules bootstrap.

Richard Smith richard-llvm at metafoo.co.uk
Wed May 13 18:08:08 PDT 2015


Author: rsmith
Date: Wed May 13 20:08:08 2015
New Revision: 237325

URL: http://llvm.org/viewvc/llvm-project?rev=237325&view=rev
Log:
[modules] Work around PR23521 to fix -O0 modules bootstrap.

Modified:
    cfe/trunk/include/clang/module.modulemap

Modified: cfe/trunk/include/clang/module.modulemap
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/module.modulemap?rev=237325&r1=237324&r2=237325&view=diff
==============================================================================
--- cfe/trunk/include/clang/module.modulemap (original)
+++ cfe/trunk/include/clang/module.modulemap Wed May 13 20:08:08 2015
@@ -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"
+}





More information about the cfe-commits mailing list