]> granicus.if.org Git - clang/log
clang
9 years agoUse std::move on these arguments.
Adrian Prantl [Sat, 19 Sep 2015 00:59:19 +0000 (00:59 +0000)]
Use std::move on these arguments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248076 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRename ASTSourceDescriptor::ModuleName to FullModuleName for clarity.
Adrian Prantl [Sat, 19 Sep 2015 00:10:37 +0000 (00:10 +0000)]
Rename ASTSourceDescriptor::ModuleName to FullModuleName for clarity.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248070 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRefactor ASTReader::getSourceDescriptor(const Module &) into a constructor
Adrian Prantl [Sat, 19 Sep 2015 00:10:32 +0000 (00:10 +0000)]
Refactor ASTReader::getSourceDescriptor(const Module &) into a constructor
of ASTSourceDescriptor. It was effectively a static function.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248069 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoEliminate a redundant check.
Adrian Prantl [Sat, 19 Sep 2015 00:10:25 +0000 (00:10 +0000)]
Eliminate a redundant check.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248068 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Static Analyzer] Fixed a false positive case in DynamicTypeChecker when dealing...
Gabor Horvath [Fri, 18 Sep 2015 23:38:57 +0000 (23:38 +0000)]
[Static Analyzer] Fixed a false positive case in DynamicTypeChecker when dealing with forward declarations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248065 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoSplit off the binary literal warning into a subgroup of C++14 warnings
Richard Trieu [Fri, 18 Sep 2015 23:18:39 +0000 (23:18 +0000)]
Split off the binary literal warning into a subgroup of C++14 warnings

Binary literals predate C++14, but they are listed as a C++14 extension since
this was the first time they were standardized in the language.  Move the
warning into a subgroup so it can be selectively disabled when checking for
other C++14 features.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248064 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoCGDebugInfo: Make creating a skeleton CU in getOrCreateModuleRef optional.
Adrian Prantl [Fri, 18 Sep 2015 23:01:45 +0000 (23:01 +0000)]
CGDebugInfo: Make creating a skeleton CU in getOrCreateModuleRef optional.
We don't want a skeleton CU when generating debug info for the module
itself.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248062 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoSimplify the interface of PCHContainerGenerator and friends
Adrian Prantl [Fri, 18 Sep 2015 22:10:59 +0000 (22:10 +0000)]
Simplify the interface of PCHContainerGenerator and friends
by passing in a CompilerInstance instead of all its individual members.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248053 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRelax the test to get it passing with windows paths.
Rafael Espindola [Fri, 18 Sep 2015 22:01:10 +0000 (22:01 +0000)]
Relax the test to get it passing with windows paths.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248051 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoAnalyzer: Fix a crasher in UbigraphViz
Ismail Pazarbasi [Fri, 18 Sep 2015 21:54:47 +0000 (21:54 +0000)]
Analyzer: Fix a crasher in UbigraphViz

Summary:
Name `Out` refers to the parameter. It is moved into the member `Out`
in ctor-init. Dereferencing null pointer will crash clang, if user
passes '-analyzer-viz-egraph-ubigraph' argument.

Reviewers: zaks.anna, krememek

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D12119

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248050 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoReduce indentation in the TargetInfo implementations and fix up
Eric Christopher [Fri, 18 Sep 2015 21:26:24 +0000 (21:26 +0000)]
Reduce indentation in the TargetInfo implementations and fix up
a couple of macro builtin redefines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248046 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[CMake] Refactoring and cleaning up clang symlink generation.
Chris Bieneman [Fri, 18 Sep 2015 21:15:54 +0000 (21:15 +0000)]
[CMake] Refactoring and cleaning up clang symlink generation.

Generation of clang symlinks now uses add_clang_symlink macro which uses add_llvm_symlink. Also the list of symlinks to generate is configurable via CLANG_LINKS_TO_CREATE.

This re-lands r248015, with fixes for clang symlinks to always be generated as part of the clang and install-clang targets.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248043 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Static Analyzer] General type checker based on dynamic type information.
Gabor Horvath [Fri, 18 Sep 2015 21:15:37 +0000 (21:15 +0000)]
[Static Analyzer] General type checker based on dynamic type information.

Differential Revision: http://reviews.llvm.org/D12973

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248041 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoDebug Info: Use the full module name as a key when caching DIModules.
Adrian Prantl [Fri, 18 Sep 2015 21:06:14 +0000 (21:06 +0000)]
Debug Info: Use the full module name as a key when caching DIModules.
The signature may not have been computed at the time the module reference
is generated (e.g.: in the future while emitting debug info for a clang
module). Using the full module name is safe because each clang module may
only have a single definition.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248037 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoHandle lld not being found in PATH.
Rafael Espindola [Fri, 18 Sep 2015 20:55:58 +0000 (20:55 +0000)]
Handle lld not being found in PATH.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248035 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoclang-cl: Don't warn on /bigobj flag
Nico Weber [Fri, 18 Sep 2015 20:49:33 +0000 (20:49 +0000)]
clang-cl: Don't warn on /bigobj flag

LLVM r217812 made it so that clang-cl implicitly creates bigobj files when
needed, independent of this flag. It looks like cl has this flag to produce obj
flags compatible with MSVS 2003's linker by default, something we don't care
about. Since clang-cl always has /bigobj behavior, don't warn that the flag is
unused, just ignore it silently.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248034 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoYet another try at fixing this at every bot.
Rafael Espindola [Fri, 18 Sep 2015 20:44:09 +0000 (20:44 +0000)]
Yet another try at fixing this at every bot.

This time handle " and - after clang and lld.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248033 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRelax this test further to pass in other bots.
Rafael Espindola [Fri, 18 Sep 2015 20:35:53 +0000 (20:35 +0000)]
Relax this test further to pass in other bots.

The problem this time was the /clang matching the InstalledDir line.

Now we just use regular expressions which are more flexible, if a bit less
readable, than CHECK+CHECK-SAME.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248031 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoFix test to pass when the directory name has lld in it.
Rafael Espindola [Fri, 18 Sep 2015 20:22:36 +0000 (20:22 +0000)]
Fix test to pass when the directory name has lld in it.

CHECK-LABEL assumes that there is only one occurrence of the match.

The output looks like:

clang version 3.8.0 (trunk 247999)
....
/path/to/build/dir/bin/clang-3.8 ....

If the path contains lld, the second CHECK-LABEL matches it and we fail since
there is no -cc1as between clang and lld.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248029 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRevert "[CMake] Refactoring and cleaning up clang symlink generation."
Chris Bieneman [Fri, 18 Sep 2015 19:59:51 +0000 (19:59 +0000)]
Revert "[CMake] Refactoring and cleaning up clang symlink generation."

This reverts commit r248015, because it broke bots. I'll revise and recommit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248025 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[analyzer] A fix for substraction of an integer from a pointer.
Gabor Horvath [Fri, 18 Sep 2015 19:13:22 +0000 (19:13 +0000)]
[analyzer] A fix for substraction of an integer from a pointer.

Patch by Artem Dergachev!

Differential Revision: http://reviews.llvm.org/D12725

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248021 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[CMake] Set CLANG_LINKS_TO_CREATE in Apple-stage2.cmake so that we create cc and...
Chris Bieneman [Fri, 18 Sep 2015 18:11:18 +0000 (18:11 +0000)]
[CMake] Set CLANG_LINKS_TO_CREATE in Apple-stage2.cmake so that we create cc and c++ links.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248016 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[CMake] Refactoring and cleaning up clang symlink generation.
Chris Bieneman [Fri, 18 Sep 2015 18:09:15 +0000 (18:09 +0000)]
[CMake] Refactoring and cleaning up clang symlink generation.

Generation of clang symlinks now uses add_clang_symlink macro which uses add_llvm_symlink. Also the list of symlinks to generate is configurable via CLANG_LINKS_TO_CREATE.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248015 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoclang-cl: Use 'pc' for the vendor field in the default triple
Hans Wennborg [Fri, 18 Sep 2015 17:11:50 +0000 (17:11 +0000)]
clang-cl: Use 'pc' for the vendor field in the default triple

Leaving it unset can make the triple look confusing, especially
when using -m32 or -m64.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248005 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Static Analyzer] Use generics related information to infer dynamic types.
Gabor Horvath [Fri, 18 Sep 2015 16:43:27 +0000 (16:43 +0000)]
[Static Analyzer] Use generics related information to infer dynamic types.

Differential Revision: http://reviews.llvm.org/D12916

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248002 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoSuppress amdgpu-toolchain.c for targeting ps4, for now. Investigating.
NAKAMURA Takumi [Fri, 18 Sep 2015 16:21:27 +0000 (16:21 +0000)]
Suppress amdgpu-toolchain.c for targeting ps4, for now. Investigating.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248000 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[analyzer] Update links to developer.apple.com.
Jordan Rose [Fri, 18 Sep 2015 16:12:16 +0000 (16:12 +0000)]
[analyzer] Update links to developer.apple.com.

The content at the new links is /also/ a little dated, but that's our
(Apple's) problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247999 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoamdgpu-toolchain.c: Add a probe line temporally. Will revert later.
NAKAMURA Takumi [Fri, 18 Sep 2015 15:56:16 +0000 (15:56 +0000)]
amdgpu-toolchain.c: Add a probe line temporally. Will revert later.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247997 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoUse None instead of an explicit constructor.
Douglas Katzman [Fri, 18 Sep 2015 15:23:16 +0000 (15:23 +0000)]
Use None instead of an explicit constructor.

And remove a needless 'const' since ArrayRef is immutable.
Both as suggested by dblaikie on cfe-commits.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247995 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoPass the relocation model to LLVM for assembler files.
Joerg Sonnenberger [Fri, 18 Sep 2015 11:13:43 +0000 (11:13 +0000)]
Pass the relocation model to LLVM for assembler files.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247981 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoclang/test/lit.cfg: *-ps4 doesn't have appropriate driver yet. Mark it as "non-clang...
NAKAMURA Takumi [Fri, 18 Sep 2015 08:11:36 +0000 (08:11 +0000)]
clang/test/lit.cfg: *-ps4 doesn't have appropriate driver yet. Mark it as "non-clang-driver".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247977 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[OPENMP 4.0] Add 'if' clause for 'cancel' directive.
Alexey Bataev [Fri, 18 Sep 2015 08:07:34 +0000 (08:07 +0000)]
[OPENMP 4.0] Add 'if' clause for 'cancel' directive.
Add parsing, sema analysis and codegen for 'if' clause in 'cancel' directive.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247976 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoFix for assertion fail for pragma weak on typedef.
Alexander Musman [Fri, 18 Sep 2015 07:40:22 +0000 (07:40 +0000)]
Fix for assertion fail for pragma weak on typedef.
Example:
typedef int __td3;
#pragma weak td3 = __td3

Differential Revision: http://reviews.llvm.org/D12904

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247975 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoDriver: avoid unnecessary string based operations
Saleem Abdulrasool [Fri, 18 Sep 2015 05:32:23 +0000 (05:32 +0000)]
Driver: avoid unnecessary string based operations

Use an enumeration and change the use of the FloatABI from a string to the
enumeration.  This avoids the use of string values to represent an enumeration.
NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247967 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Concepts] Moving tests to match the corresponding section of the TS
Nathan Wilson [Fri, 18 Sep 2015 02:50:53 +0000 (02:50 +0000)]
[Concepts] Moving tests to match the corresponding section of the TS

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247966 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoclang/test/Driver/myriad-toolchain.c: Tweak for DOSish path.
NAKAMURA Takumi [Fri, 18 Sep 2015 01:02:50 +0000 (01:02 +0000)]
clang/test/Driver/myriad-toolchain.c: Tweak for DOSish path.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247959 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Myriad]: add "<sysroot>/include" to standard search path
Douglas Katzman [Thu, 17 Sep 2015 21:20:16 +0000 (21:20 +0000)]
[Myriad]: add "<sysroot>/include" to standard search path

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247948 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoSupport __builtin_ms_va_list.
Charles Davis [Thu, 17 Sep 2015 20:55:33 +0000 (20:55 +0000)]
Support __builtin_ms_va_list.

Summary:
This change adds support for `__builtin_ms_va_list`, a GCC extension for
variadic `ms_abi` functions. The existing `__builtin_va_list` support is
inadequate for this because `va_list` is defined differently in the Win64
ABI vs. the System V/AMD64 ABI.

Depends on D1622.

Reviewers: rsmith, rnk, rjmccall

CC: cfe-commits
Differential Revision: http://reviews.llvm.org/D1623

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247941 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoUsing MD_invariant_group
Piotr Padlewski [Thu, 17 Sep 2015 20:25:46 +0000 (20:25 +0000)]
Using MD_invariant_group

http://reviews.llvm.org/D12927

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247933 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoTry to unbreak windows compiler after r247926.
Douglas Katzman [Thu, 17 Sep 2015 20:25:09 +0000 (20:25 +0000)]
Try to unbreak windows compiler after r247926.

It might not like {} implicitly cast to an Arrayref.
That's the theory, since I can't test it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247932 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoFixed the comment to match reality.
Artem Belevich [Thu, 17 Sep 2015 20:19:33 +0000 (20:19 +0000)]
Fixed the comment to match reality.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247930 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Shave]: Rename test file from 'shave-' to 'myriad-'
Douglas Katzman [Thu, 17 Sep 2015 20:00:09 +0000 (20:00 +0000)]
[Shave]: Rename test file from 'shave-' to 'myriad-'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247926 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Shave]: Drive sparc-myriad-elf-ld directly rather than via gcc.
Douglas Katzman [Thu, 17 Sep 2015 19:56:40 +0000 (19:56 +0000)]
[Shave]: Drive sparc-myriad-elf-ld directly rather than via gcc.

Differential Revision: http://reviews.llvm.org/D12541

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247924 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[CMake] Add install-clang target to install just the clang executable
Chris Bieneman [Thu, 17 Sep 2015 18:30:20 +0000 (18:30 +0000)]
[CMake] Add install-clang target to install just the clang executable

For the llvm-tools we're generating install-${tool} targets which are very useful. We should have one for clang too.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247912 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoUse the MSVC SEH personalities on Mingw
Reid Kleckner [Thu, 17 Sep 2015 17:04:13 +0000 (17:04 +0000)]
Use the MSVC SEH personalities on Mingw

Mingw generally wraps an old copy of msvcrt.dll which has these
personalities, so things should work out, or so I hear. I haven't tested
it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247902 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agocreateOutputFile should set Error to something if it returns null.
Douglas Katzman [Thu, 17 Sep 2015 16:45:12 +0000 (16:45 +0000)]
createOutputFile should set Error to something if it returns null.

This is not portably unit-testable because the only visible
effect is a change from one random message string to another.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247900 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoFix a typo.
Adrian Prantl [Thu, 17 Sep 2015 15:58:54 +0000 (15:58 +0000)]
Fix a typo.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247895 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agore-apply r.247881
Asaf Badouh [Thu, 17 Sep 2015 14:53:37 +0000 (14:53 +0000)]
re-apply r.247881
fixed the tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247892 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoUpdate the 3.8 release notes with the breaking change information regarding AST matchers.
Aaron Ballman [Thu, 17 Sep 2015 13:47:22 +0000 (13:47 +0000)]
Update the 3.8 release notes with the breaking change information regarding AST matchers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247887 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRename AST node matchers to match the AST node names directly. Part of this rename...
Aaron Ballman [Thu, 17 Sep 2015 13:30:52 +0000 (13:30 +0000)]
Rename AST node matchers to match the AST node names directly. Part of this rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxRecordDecl (that matches CXXRecordDecl). Also adds isStruct(), isUnion(), and isClass() narrowing matchers for RecordDecl objects.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247885 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agorevert r.247881 due to tests failures
Asaf Badouh [Thu, 17 Sep 2015 13:09:33 +0000 (13:09 +0000)]
revert r.247881 due to tests failures

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247883 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoAppease clang/test/CodeGen/avx512dq-builtins.c for -Asserts, for now.
NAKAMURA Takumi [Thu, 17 Sep 2015 12:33:34 +0000 (12:33 +0000)]
Appease clang/test/CodeGen/avx512dq-builtins.c for -Asserts, for now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247882 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[X86][AVX512DQ] add new intrinsics
Asaf Badouh [Thu, 17 Sep 2015 11:56:04 +0000 (11:56 +0000)]
[X86][AVX512DQ] add new intrinsics
convert i64 to FP and vice versa
reduceps & reducepd
rangeps & rangepd
all in their 512bit versions

Differential Revision: http://reviews.llvm.org/D11716

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247881 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoUpdating docs for MSan to describe poison-in-dtor.
Naomi Musgrave [Thu, 17 Sep 2015 00:10:59 +0000 (00:10 +0000)]
Updating docs for MSan to describe poison-in-dtor.

Summary:
Describe the compile and runtime flags to enable MemorySanitizer
detection of use-after-destroy.

Reviewers: eugenis

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D12914

Revise doc description of use-after-dtor.

Change wording to specify memory no longer readable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247871 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoanalyzer-plugin/MainCallChecker.cpp: s/generateSink/generateErrorNode/, corresponding...
NAKAMURA Takumi [Wed, 16 Sep 2015 22:57:23 +0000 (22:57 +0000)]
analyzer-plugin/MainCallChecker.cpp: s/generateSink/generateErrorNode/, corresponding to r247859.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247862 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Static Analyzer] Generics Checker: When an ObjC method returns a specialized object...
Gabor Horvath [Wed, 16 Sep 2015 22:44:36 +0000 (22:44 +0000)]
[Static Analyzer] Generics Checker: When an ObjC method returns a specialized object, track it properly.

Differential Revision: http://reviews.llvm.org/D12889

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247861 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[analyzer] Add generateErrorNode() APIs to CheckerContext.
Devin Coughlin [Wed, 16 Sep 2015 22:03:05 +0000 (22:03 +0000)]
[analyzer] Add generateErrorNode() APIs to CheckerContext.

The analyzer trims unnecessary nodes from the exploded graph before reporting
path diagnostics. However, in some cases it can trim all nodes (including the
error node), leading to an assertion failure (see
https://llvm.org/bugs/show_bug.cgi?id=24184).

This commit addresses the issue by adding two new APIs to CheckerContext to
explicitly create error nodes. Unless the client provides a custom tag, these
APIs tag the node with the checker's tag -- preventing it from being trimmed.
The generateErrorNode() method creates a sink error node, while
generateNonFatalErrorNode() creates an error node for a path that should
continue being explored.

The intent is that one of these two methods should be used whenever a checker
creates an error node.

This commit updates the checkers to use these APIs. These APIs
(unlike addTransition() and generateSink()) do not take an explicit Pred node.
This is because there are not any error nodes in the checkers that were created
with an explicit different than the default (the CheckerContext's Pred node).

It also changes generateSink() to require state and pred nodes (previously
these were optional) to reduce confusion.

Additionally, there were several cases where checkers did check whether a
generated node could be null; we now explicitly check for null in these places.

This commit also includes a test case written by Ying Yi as part of
http://reviews.llvm.org/D12163 (that patch originally addressed this issue but
was reverted because it introduced false positive regressions).

Differential Revision: http://reviews.llvm.org/D12780

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247859 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[WinEH] Fix a build issue in CGException.cpp
Reid Kleckner [Wed, 16 Sep 2015 21:06:09 +0000 (21:06 +0000)]
[WinEH] Fix a build issue in CGException.cpp

I was constructing an object without filling in all the fields.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247851 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[WinEH] Pass the catch adjectives to catchpad directly
Reid Kleckner [Wed, 16 Sep 2015 20:15:55 +0000 (20:15 +0000)]
[WinEH] Pass the catch adjectives to catchpad directly

This avoids building a fake LLVM IR global variable just to ferry an i32
down into LLVM codegen. It also puts a nail in the coffin of using MS
ABI C++ EH with landingpads, since now we'll assert in the lpad code
when flags are present.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247843 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[tooling] Add unit tests for change in r247468.
Argyrios Kyrtzidis [Wed, 16 Sep 2015 18:28:42 +0000 (18:28 +0000)]
[tooling] Add unit tests for change in r247468.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247832 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[analyzer] Improved behavior if Clang was not found, part II
Anton Yartsev [Wed, 16 Sep 2015 18:12:15 +0000 (18:12 +0000)]
[analyzer] Improved behavior if Clang was not found, part II

- scan-build help: display 'Could not query Clang for the list of available checkers.' + the reason why it happened so if clang was not found.
- display requested/forced help in case of --use-analyzer=Xcode.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247828 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[sanitizers] Enable memory sanitizer on clang
Adhemerval Zanella [Wed, 16 Sep 2015 15:11:21 +0000 (15:11 +0000)]
[sanitizers] Enable memory sanitizer on clang

This patch enables MSan for aarch64/linux

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247808 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoCGClass.cpp: Fix a warning in -Asserts. [-Wunused-private-field]
NAKAMURA Takumi [Wed, 16 Sep 2015 06:26:56 +0000 (06:26 +0000)]
CGClass.cpp: Fix a warning in -Asserts. [-Wunused-private-field]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247778 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[analyzer] SATestBuild.py: Move additional checkers logic so SATestAdd.py can use...
Devin Coughlin [Wed, 16 Sep 2015 01:52:32 +0000 (01:52 +0000)]
[analyzer] SATestBuild.py: Move additional checkers logic so SATestAdd.py can use it as well.

Move the logic looking for additional checkers in the SA_ADDITIONAL_CHECKERS
environmental variable from SATestBuild's main() to runScanBuild(). This allows
SATestAdd.py to use the variable as well. Without it, we won't include
additional checkers when building reference results for the build bot.

Differential Revision: http://reviews.llvm.org/D12891

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247767 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[modules] Fix a corner case in the macro override rules: properly handle overridden...
Richard Smith [Wed, 16 Sep 2015 00:55:50 +0000 (00:55 +0000)]
[modules] Fix a corner case in the macro override rules: properly handle overridden leaf module macros.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247765 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoImplementation and testing for poisoning vtable
Naomi Musgrave [Wed, 16 Sep 2015 00:38:22 +0000 (00:38 +0000)]
Implementation and testing for poisoning vtable
ptr in dtor.

Summary:
After destruction, invocation of virtual functions prevented
by poisoning vtable pointer.

Reviewers: eugenis, kcc

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D12712

Fixed testing callback emission order to account for vptr.
Poison vtable in either complete or base dtor, depending on
if virtual bases exist. If virtual bases exist, poison in
complete dtor. Otherwise, poison in base.
Remove commented-out block.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247762 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoclang/test/CodeGenCXX/exceptions-cxx-new.cpp: Don't assume the label "entry:".
NAKAMURA Takumi [Wed, 16 Sep 2015 00:33:59 +0000 (00:33 +0000)]
clang/test/CodeGenCXX/exceptions-cxx-new.cpp: Don't assume the label "entry:".

Seems it would be redundant.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247761 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRemove accidental superfluous newline added in r247750.
Nico Weber [Tue, 15 Sep 2015 23:51:08 +0000 (23:51 +0000)]
Remove accidental superfluous newline added in r247750.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247752 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoclang-format: In Java, `assert` is followed by an expression.
Nico Weber [Tue, 15 Sep 2015 23:48:17 +0000 (23:48 +0000)]
clang-format: In Java, `assert` is followed by an expression.

Before: assert a&& b;
Now:    assert a && b;

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247750 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoTry to appease the build bots
David Majnemer [Tue, 15 Sep 2015 23:34:59 +0000 (23:34 +0000)]
Try to appease the build bots

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247743 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[MS ABI] Add a C++ test for -fnew-ms-eh
David Majnemer [Tue, 15 Sep 2015 23:30:42 +0000 (23:30 +0000)]
[MS ABI] Add a C++ test for -fnew-ms-eh

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247742 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoDon't crash when passing &@selector to a _Nonnull parameter. Fixes PR24774.
Nico Weber [Tue, 15 Sep 2015 23:17:17 +0000 (23:17 +0000)]
Don't crash when passing &@selector to a _Nonnull parameter. Fixes PR24774.

The root cause here is that ObjCSelectorExpr is an rvalue, yet it can have its
address taken.  That's kind of awkward, but fixing this is awkward in other
ways, see https://llvm.org/bugs/show_bug.cgi?id=24774#c16 .  For now, just
fix the crash.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247740 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[Static Analyzer] Added an XFAIL test for inlining when the type inference involves...
Gabor Horvath [Tue, 15 Sep 2015 23:14:01 +0000 (23:14 +0000)]
[Static Analyzer] Added an XFAIL test for inlining when the type inference involves generic types.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247739 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoinvariant.group-for-vptrs test fix
Piotr Padlewski [Tue, 15 Sep 2015 23:04:47 +0000 (23:04 +0000)]
invariant.group-for-vptrs test fix

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247733 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[CMake] Add cache scripts for Apple-style clang builds.
Chris Bieneman [Tue, 15 Sep 2015 21:52:42 +0000 (21:52 +0000)]
[CMake] Add cache scripts for Apple-style clang builds.

Summary:
These CMake cache scripts are my first pass at replicating Apple's packaging logic from autoconf. They can be used on any Darwin machine to approximate an Apple Clang build.

The included README file includes documentation and a sample CMake invocation.

Reviewers: chandlerc, echristo

Subscribers: echristo, cfe-commits

Differential Revision: http://reviews.llvm.org/D12817

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247726 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoDecorating vptr load & stores with !invariant.group
Piotr Padlewski [Tue, 15 Sep 2015 21:46:55 +0000 (21:46 +0000)]
Decorating vptr load & stores with !invariant.group

Adding !invariant.group to vptr load/stores for devirtualization purposes.
For more goto:
http://lists.llvm.org/pipermail/cfe-dev/2015-July/044227.html

http://reviews.llvm.org/D12026

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247725 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoAdded llvm.module flag for strict vtable pointers
Piotr Padlewski [Tue, 15 Sep 2015 21:46:50 +0000 (21:46 +0000)]
Added llvm.module flag for strict vtable pointers

It is dangerous to do LTO on code with strict-vtable-pointers, because
one module has invariant.group.barriers, and the other one not.

In the future I want to just strip all invariant.group metadata from
vptrs loads/stores and get rid of invariant.group.barrier calls.

http://reviews.llvm.org/D12580

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247724 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoEmiting llvm.invariant.group.barrier when dynamic type changes
Piotr Padlewski [Tue, 15 Sep 2015 21:46:47 +0000 (21:46 +0000)]
Emiting llvm.invariant.group.barrier when dynamic type changes

For more goto:
http://lists.llvm.org/pipermail/cfe-dev/2015-July/044227.html

http://reviews.llvm.org/D12312

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247723 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoMS ABI: Don't allow dllexport/import on lambdas
Hans Wennborg [Tue, 15 Sep 2015 21:05:30 +0000 (21:05 +0000)]
MS ABI: Don't allow dllexport/import on lambdas

This is to follow up on David's comment in
http://reviews.llvm.org/D12422#235509

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247718 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoAdd test coverage for @encode(SEL); completely untested until now.
Nico Weber [Tue, 15 Sep 2015 20:05:20 +0000 (20:05 +0000)]
Add test coverage for @encode(SEL); completely untested until now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247717 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoAllow static local variables specified on data-sharing attribute clauses.
Kelvin Li [Tue, 15 Sep 2015 18:56:58 +0000 (18:56 +0000)]
Allow static local variables specified on data-sharing attribute clauses.

http://reviews.llvm.org/D11619

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247715 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[modules] Make sure we make hidden UsingShadowDecls visible to redeclaration
Richard Smith [Tue, 15 Sep 2015 18:51:56 +0000 (18:51 +0000)]
[modules] Make sure we make hidden UsingShadowDecls visible to redeclaration
lookup for the UsingShadowDecls themselves.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247714 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRebase tests after LLVM r247707.
Nico Weber [Tue, 15 Sep 2015 18:49:51 +0000 (18:49 +0000)]
Rebase tests after LLVM r247707.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247712 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[OPENMP] Emit an additional note during analysis of 'if' clause.
Alexey Bataev [Tue, 15 Sep 2015 17:23:56 +0000 (17:23 +0000)]
[OPENMP] Emit an additional note during analysis of 'if' clause.
Patch adds emission of additional note for 'if' clauses with name modifiers in case if 'if' clause without name modified was specified or 'if' clause with the same name modifier was specified.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247706 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRevert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related...
Daniel Sanders [Tue, 15 Sep 2015 16:17:27 +0000 (16:17 +0000)]
Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.

Eric has replied and has demanded the patch be reverted.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247702 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoMention that libcxx is required to build Compiler-RT tests on OS X.
Yury Gribov [Tue, 15 Sep 2015 15:05:47 +0000 (15:05 +0000)]
Mention that libcxx is required to build Compiler-RT tests on OS X.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247696 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoSilencing a -Wreturn-type warning; NFC.
Aaron Ballman [Tue, 15 Sep 2015 14:11:32 +0000 (14:11 +0000)]
Silencing a -Wreturn-type warning; NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247693 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRe-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and relate...
Daniel Sanders [Tue, 15 Sep 2015 14:08:28 +0000 (14:08 +0000)]
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.

Summary:
This is the first patch in the series to migrate Triple's (which are ambiguous)
to TargetTuple's (which aren't).

For the moment, TargetTuple simply passes all requests to the Triple object it
holds. Once it has replaced Triple, it will start to implement the interface in
a more suitable way.

This change makes some changes to the public C++ API. In particular,
InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer()
now take TargetTuples instead of Triples. The other public C++ API's have
been left as-is for the moment to reduce patch size.

This commit also contains a trivial patch to clang to account for the C++ API
change. Thanks go to Pavel Labath for fixing LLDB for me.

Reviewers: rengolin

Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin

Differential Revision: http://reviews.llvm.org/D10969

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247692 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRevert r247684 - Replace Triple with a new TargetTuple ...
Daniel Sanders [Tue, 15 Sep 2015 13:46:21 +0000 (13:46 +0000)]
Revert r247684 - Replace Triple with a new TargetTuple ...

LLDB needs to be updated in the same commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247686 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoReplace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Daniel Sanders [Tue, 15 Sep 2015 13:17:40 +0000 (13:17 +0000)]
Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.

Summary:
This is the first patch in the series to migrate Triple's (which are ambiguous)
to TargetTuple's (which aren't).

For the moment, TargetTuple simply passes all requests to the Triple object it
holds. Once it has replaced Triple, it will start to implement the interface in
a more suitable way.

This change makes some changes to the public C++ API. In particular,
InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer()
now take TargetTuples instead of Triples. The other public C++ API's have
been left as-is for the moment to reduce patch size.

This commit also contains a trivial patch to clang to account for the C++ API
change.

Reviewers: rengolin

Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin

Differential Revision: http://reviews.llvm.org/D10969

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247683 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[OPENMP] Emit __kmpc_cancel_barrier() and code for 'cancellation point' only if ...
Alexey Bataev [Tue, 15 Sep 2015 12:52:43 +0000 (12:52 +0000)]
[OPENMP] Emit __kmpc_cancel_barrier() and code for 'cancellation point' only if 'cancel' is found.
Patch improves codegen for OpenMP constructs. If the OpenMP region does not have internal 'cancel' construct, a call to 'void __kmpc_barrier()' runtime function is generated for all implicit/explicit barriers. If the region has inner 'cancel' directive, then
```
if (__kmpc_cancel_barrier())
  exit from outer construct;
```
code is generated.
Also, the code for 'canellation point' directive is not generated if parent directive does not have 'cancel' directive.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247681 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoRun clang-format to unify the switch statement style as suggest here: http://reviews...
Alexey Bader [Tue, 15 Sep 2015 12:18:29 +0000 (12:18 +0000)]
Run clang-format to unify the switch statement style as suggest here: http://reviews.llvm.org/D12855#246073.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247678 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[OpenCL] Add new types for OpenCL 2.0.
Alexey Bader [Tue, 15 Sep 2015 11:18:52 +0000 (11:18 +0000)]
[OpenCL] Add new types for OpenCL 2.0.

Patch by Pedro Ferreira.
Reviewers: pekka.jaaskelainen
Differential Revision: http://reviews.llvm.org/D12855

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247676 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoDoxygen fix InitializeBuiltins -> initializeBuiltins
Ismail Donmez [Tue, 15 Sep 2015 09:53:14 +0000 (09:53 +0000)]
Doxygen fix InitializeBuiltins -> initializeBuiltins

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247668 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoMake clang/test/CodeGen/catch-undef-behavior.c* capable of -Asserts with "opt -instna...
NAKAMURA Takumi [Tue, 15 Sep 2015 09:50:24 +0000 (09:50 +0000)]
Make clang/test/CodeGen/catch-undef-behavior.c* capable of -Asserts with "opt -instnamer".

It reverts r231717.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247667 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[analyzer] Restore behavior change introduced by r247657.
Devin Coughlin [Tue, 15 Sep 2015 03:28:27 +0000 (03:28 +0000)]
[analyzer] Restore behavior change introduced by r247657.

r247657 fixed warnings about unused variables when compiling without asserts
but changed behavior. This commit restores the old behavior but still suppresses
the warnings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247660 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[MS ABI] Restore our warning for overwide bitfields using the MS ABI
David Majnemer [Tue, 15 Sep 2015 02:36:41 +0000 (02:36 +0000)]
[MS ABI] Restore our warning for overwide bitfields using the MS ABI

This restores a diagnostic lost in r247651.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247659 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoExprEngineObjC.cpp: Fix warnings. [-Wunused-variable]
NAKAMURA Takumi [Tue, 15 Sep 2015 01:53:27 +0000 (01:53 +0000)]
ExprEngineObjC.cpp: Fix warnings. [-Wunused-variable]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247657 91177308-0d34-0410-b5e6-96231b3b80d8

9 years agoItaniumCXXABI.cpp: Fix a warning. [-Wunused-variable]
NAKAMURA Takumi [Tue, 15 Sep 2015 01:39:27 +0000 (01:39 +0000)]
ItaniumCXXABI.cpp: Fix a warning. [-Wunused-variable]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247655 91177308-0d34-0410-b5e6-96231b3b80d8

9 years ago[modules] A using-declaration doesn't introduce a new entity, just a new name
Richard Smith [Tue, 15 Sep 2015 01:28:55 +0000 (01:28 +0000)]
[modules] A using-declaration doesn't introduce a new entity, just a new name
for an existing entity, and as such a using-declaration doesn't need to
conflict with a hidden entity (nor vice versa).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247654 91177308-0d34-0410-b5e6-96231b3b80d8