llvm-project/clang/lib
Erich Keane 505427cb2f Permit redeclarations of a builtin to specify calling convention.
After https://reviews.llvm.org/rL355317 we noticed that quite a decent
amount of code redeclares builtins (memcpy in particular, I believe
reduced from an MSVC header) with a calling convention specified.
This gets particularly troublesome when the user specifies a new
'default' calling convention on the command line.

When looking to add a diagnostic for this case, it was noticed that we
had 3 other diagnostics that differed only slightly.  This patch ALSO
unifies those under a 'select'.  Unfortunately, the order of words in
ONE of these diagnostics was reversed ("'thiscall' calling convention"
vs "calling convention 'thiscall'"), so this patch also standardizes on
the former.

Differential Revision: https://reviews.llvm.org/D59560

Change-Id: I79f99fe7c2301640755ffdd774b46eb44526bb22
llvm-svn: 356663
2019-03-21 13:30:56 +00:00
..
ARCMigrate Fix file headers. NFC 2019-03-01 06:49:51 +00:00
AST Revert "[clangd] Print arguments in template specializations" 2019-03-20 22:51:56 +00:00
ASTMatchers [NFC][ASTMatchers] Alphabetically sort REGISTER_MATCHER() macros in RegistryMaps::RegistryMaps() 2019-03-20 17:15:47 +00:00
Analysis [CFG] [analyzer] pr41142: C++17: Skip transparent InitListExprs in constructors. 2019-03-21 00:15:07 +00:00
Basic [X86] Remove getCPUKindCanonicalName which is unused. 2019-03-20 17:26:51 +00:00
CodeGen [OpenCL] Generate 'unroll.enable' metadata for __attribute__((opencl_unroll_hint)) 2019-03-20 16:43:07 +00:00
CrossTU [CTU] Do not allow different CPP dialects in CTU 2019-02-28 15:24:59 +00:00
Driver Add --unwindlib=[libgcc|compiler-rt] to parallel --rtlib= [take 2] 2019-03-19 20:01:59 +00:00
Edit [Fixed Point Arithmetic] Fixed Point and Integer Conversions 2019-03-06 00:28:43 +00:00
Format [clang-format] Add basic support for formatting C# files 2019-03-21 13:09:22 +00:00
Frontend Add PragmaHandler for MSVC pragma execution_character_set 2019-03-14 18:12:17 +00:00
FrontendTool [analyzer][NFC] Supply CheckerRegistry with AnalyzerOptions 2019-01-26 15:59:21 +00:00
Headers [X86] Add __crc32b/__crc32w/__crc32d/__crc32q intrinsics to match gcc and icc. 2019-03-20 20:25:28 +00:00
Index [clang][Index] Mark references from Constructors and Destructors to class as NameReference 2019-03-08 08:30:20 +00:00
Lex Replace tok::angle_string_literal with new tok::header_name. 2019-03-19 22:09:55 +00:00
Parse [coroutines][PR40978] Emit error for co_yield within catch block 2019-03-15 20:25:49 +00:00
Rewrite Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Sema Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +00:00
Serialization [OPENMP]Improve detection of omp_allocator_handle_t type and predefined 2019-03-20 20:14:22 +00:00
StaticAnalyzer [analyzer] ConditionBRVisitor: Unknown condition evaluation support 2019-03-16 13:47:55 +00:00
Tooling [Tooling] Add more scope specifiers until spelling is not ambiguous. 2019-03-19 10:12:15 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00