summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-09-23 00:48:05 +0000
committerEric Fiselier <eric@efcs.ca>2018-09-23 00:48:05 +0000
commit91cef98d2c41eff0dea474a760d2dce5ba873209 (patch)
tree7384b6b52bcdf69bbf894ea7a27fa30d2558ca94
parent81f67f7afb7d16ab346a3bc2d7682754c0c713f9 (diff)
downloadbcm5719-llvm-91cef98d2c41eff0dea474a760d2dce5ba873209.tar.gz
bcm5719-llvm-91cef98d2c41eff0dea474a760d2dce5ba873209.zip
Fix modules build with shared library.
r341994 caused clangAnalysis to pull all of the AST matchers library into clang. 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 should not have. This patch works around the issues by excluding the offending libclangAnalysis header in the modulemap. llvm-svn: 342827
-rw-r--r--clang/include/clang/module.modulemap6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang/module.modulemap b/clang/include/clang/module.modulemap
index 8d525c5ffba..4cf5cd44bf3 100644
--- a/clang/include/clang/module.modulemap
+++ b/clang/include/clang/module.modulemap
@@ -5,6 +5,12 @@ module Clang_Analysis {
textual header "Analysis/Analyses/ThreadSafetyOps.def"
module * { export * }
+
+ // FIXME: Exclude these headers to avoid pulling all of the AST matchers
+ // library into clang. 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 "Analysis/Analyses/ExprMutationAnalyzer.h"
}
module Clang_AST {
OpenPOWER on IntegriCloud