diff options
author | Alex Lorenz <arphaman@gmail.com> | 2016-11-02 15:46:34 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2016-11-02 15:46:34 +0000 |
commit | 560ae565e9fa981ce2a49282b71c1e716ff347d1 (patch) | |
tree | e84aeceba2a821f6f863609ac9dd5307da27cb57 /clang/lib/Sema/SemaDecl.cpp | |
parent | 93f2f7fb6c323083ec39abc0b67a9b51dc416684 (diff) | |
download | bcm5719-llvm-560ae565e9fa981ce2a49282b71c1e716ff347d1.tar.gz bcm5719-llvm-560ae565e9fa981ce2a49282b71c1e716ff347d1.zip |
Add a note that points to the linkage specifier for the C++ linkage errors
This commit improves the "must have C++ linkage" error diagnostics that are
emitted for C++ declarations like templates and literal operators by adding an
additional note that points to the appropriate extern "C" linkage specifier.
rdar://19021120
Differential Revision: https://reviews.llvm.org/D26189
llvm-svn: 285823
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 1813aa0b648..e20ae1a0151 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -15341,7 +15341,7 @@ static void checkModuleImportContext(Sema &S, Module *M, } else if (!M->IsExternC && ExternCLoc.isValid()) { S.Diag(ImportLoc, diag::ext_module_import_in_extern_c) << M->getFullModuleName(); - S.Diag(ExternCLoc, diag::note_module_import_in_extern_c); + S.Diag(ExternCLoc, diag::note_extern_c_begins_here); } } |