diff options
author | Vassil Vassilev <v.g.vassilev@gmail.com> | 2016-07-22 21:08:24 +0000 |
---|---|---|
committer | Vassil Vassilev <v.g.vassilev@gmail.com> | 2016-07-22 21:08:24 +0000 |
commit | bce52aed345c52715744ec7aef4942b3a66bfc04 (patch) | |
tree | 297cccb210754839a293218d24d61a7598fafba9 /test/Modules/pr28332.cpp | |
parent | 6f236a83f127aca0ba536a7345fe2f619e1e9723 (diff) | |
download | clang-bce52aed345c52715744ec7aef4942b3a66bfc04.tar.gz |
[modules] Teach the ASTWriter to ignore mutations coming from the ASTReader.
Processing update records (and loading a module, in general) might trigger
unexpected calls to the ASTWriter (being a mutation listener). Now we have a
mechanism to suppress those calls to the ASTWriter but notify other possible
mutation listeners.
Fixes https://llvm.org/bugs/show_bug.cgi?id=28332
Patch by Cristina Cristescu and me.
Reviewed by Richard Smith (D21800).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/pr28332.cpp')
-rw-r--r-- | test/Modules/pr28332.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Modules/pr28332.cpp b/test/Modules/pr28332.cpp new file mode 100644 index 0000000000..596dd24600 --- /dev/null +++ b/test/Modules/pr28332.cpp @@ -0,0 +1,8 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR28332 -verify %s +// RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR28332/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR28332 -verify %s + +#include "a.h" + +// expected-no-diagnostics + |