summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/borland-extensions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Renamed and changed the wording of warn_cconv_ignoredSunil Srivastava2019-07-171-8/+8
| | | | | | | | As discussed in D64780 the wording of this warning message is being changed to say 'is not supported' instead of 'ignored', and the diag ID itself is being changed to warn_cconv_not_supported. llvm-svn: 366368
* Permit redeclarations of a builtin to specify calling convention.Erich Keane2019-03-211-8/+8
| | | | | | | | | | | | | | | | | | | | 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
* Actually remove the hack which was blocking the Borland-style attributes fromRichard Smith2013-01-291-0/+3
| | | | | | | working, and add the missing attribute spellings. This brings _pascal, _fastcall, _stdcall and _cdecl to life in -fborland-extensions mode. llvm-svn: 173749
* Replace AS_MSTypespec with AS_Keyword, for representing any attribute spelledRichard Smith2013-01-291-2/+7
| | | | | | | | | as a keyword. Rationalize existing attributes to use it as appropriate, and to not lie about some __declspec attributes being GNU attributes. In passing, remove a gross hack which was discarding attributes which we could handle. This results in us actually respecting the __pascal keyword again. llvm-svn: 173746
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-0/+1
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Add support for a few MS extensions supported by the Borland compilerDawn Perchik2010-09-081-0/+27
| | | | | | (__uuidof, _fastcall, etc.). llvm-svn: 113434
* Add symantic support for the Pascal calling convention viaDawn Perchik2010-09-031-0/+20
| | | | | | | "__attribute((pascal))" or "__pascal" (and "_pascal" under -fborland-extensions). Support still needs to be added to llvm. llvm-svn: 112939
* Add support for Borland extensions via option -fborland-extensionsDawn Perchik2010-09-021-0/+6
| | | | | | (original patch r112791 was reverted due to a bug). llvm-svn: 112915
* Reverting rev 112791 - apparently -fborland-extensions is on all the time?!Dawn Perchik2010-09-021-6/+0
| | | | llvm-svn: 112797
* Add support for Borland extensions via option -fborland-extensionsDawn Perchik2010-09-021-0/+6
llvm-svn: 112791
OpenPOWER on IntegriCloud