Date: Thu, 9 Mar 2017 22:50:47 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org Subject: svn commit: r314977 - in vendor/clang/dist: lib/Basic lib/Serialization test/PCH Message-ID: <201703092250.v29MolAX097651@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Thu Mar 9 22:50:47 2017 New Revision: 314977 URL: https://svnweb.freebsd.org/changeset/base/314977 Log: Vendor import of clang 4.0.0 release r297347: https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_400/final@297347 Added: vendor/clang/dist/test/PCH/empty-def-fwd-struct.h (contents, props changed) Modified: vendor/clang/dist/lib/Basic/Version.cpp vendor/clang/dist/lib/Serialization/ASTReaderDecl.cpp Modified: vendor/clang/dist/lib/Basic/Version.cpp ============================================================================== --- vendor/clang/dist/lib/Basic/Version.cpp Thu Mar 9 22:50:30 2017 (r314976) +++ vendor/clang/dist/lib/Basic/Version.cpp Thu Mar 9 22:50:47 2017 (r314977) @@ -36,7 +36,7 @@ std::string getClangRepositoryPath() { // If the SVN_REPOSITORY is empty, try to use the SVN keyword. This helps us // pick up a tag in an SVN export, for example. - StringRef SVNRepository("$URL: https://llvm.org/svn/llvm-project/cfe/branches/release_40/lib/Basic/Version.cpp $"); + StringRef SVNRepository("$URL: https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_400/final/lib/Basic/Version.cpp $"); if (URL.empty()) { URL = SVNRepository.slice(SVNRepository.find(':'), SVNRepository.find("/lib/Basic")); Modified: vendor/clang/dist/lib/Serialization/ASTReaderDecl.cpp ============================================================================== --- vendor/clang/dist/lib/Serialization/ASTReaderDecl.cpp Thu Mar 9 22:50:30 2017 (r314976) +++ vendor/clang/dist/lib/Serialization/ASTReaderDecl.cpp Thu Mar 9 22:50:47 2017 (r314977) @@ -2513,8 +2513,8 @@ static bool isConsumerInterestedIn(ASTCo // An ImportDecl or VarDecl imported from a module will get emitted when // we import the relevant module. - if ((isa<ImportDecl>(D) || isa<VarDecl>(D)) && Ctx.DeclMustBeEmitted(D) && - D->getImportedOwningModule()) + if ((isa<ImportDecl>(D) || isa<VarDecl>(D)) && D->getImportedOwningModule() && + Ctx.DeclMustBeEmitted(D)) return false; if (isa<FileScopeAsmDecl>(D) || Added: vendor/clang/dist/test/PCH/empty-def-fwd-struct.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/clang/dist/test/PCH/empty-def-fwd-struct.h Thu Mar 9 22:50:47 2017 (r314977) @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -emit-pch -x c++-header %s -std=c++14 -o %t.pch +// RUN: %clang_cc1 -emit-llvm-only -x c++ /dev/null -std=c++14 -include-pch %t.pch -o %t.o +struct FVector; +struct FVector {}; +struct FBox { + FVector Min; + FBox(int); +}; +namespace { +FBox InvalidBoundingBox(0); +} +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703092250.v29MolAX097651>