]> granicus.if.org Git - clang/commit
Modules: Add -Rmodule-import
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 6 Mar 2019 02:50:46 +0000 (02:50 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 6 Mar 2019 02:50:46 +0000 (02:50 +0000)
commit6c5acd1a62ec566ec4f64ecb038bcadba367da7c
treee8af42d6e28c7196adcc7521c510691028d94832
parentad9a67e1f7dae24e41d70541d09019900ec029cd
Modules: Add -Rmodule-import

Add a remark for importing modules.  Depending on whether this is a
direct import (into the TU being built by this compiler instance) or
transitive import (into an already-imported module), the diagnostic has
two forms:

    importing module 'Foo' from 'path/to/Foo.pcm'
    importing module 'Foo' into 'Bar' from 'path/to/Foo.pcm'

Also drop a redundant FileCheck invocation in Rmodule-build.m that was
using -Reverything, since the notes from -Rmodule-import were confusing
it.

https://reviews.llvm.org/D58891

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355477 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSerializationKinds.td
lib/Serialization/ASTReader.cpp
test/Modules/Inputs/Rmodule-import/A.h [new file with mode: 0644]
test/Modules/Inputs/Rmodule-import/B.h [new file with mode: 0644]
test/Modules/Inputs/Rmodule-import/C.h [new file with mode: 0644]
test/Modules/Inputs/Rmodule-import/D.h [new file with mode: 0644]
test/Modules/Inputs/Rmodule-import/module.modulemap [new file with mode: 0644]
test/Modules/Rmodule-build.m
test/Modules/Rmodule-import.m [new file with mode: 0644]