aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/predefined-expr.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-06-29Account for calling convention specifiers in function definitions in IR test ↵David Blaikie1-2/+2
cases Several tests wouldn't pass when executed on an armv7a_pc_linux triple due to the non-default arm_aapcs calling convention produced on the function definitions in the IR output. Account for this with the application of a little regex. Patch by Ying Yi. llvm-svn: 240971
2015-01-21Used CHECK-DAG since the order is not important.Rafael Espindola1-70/+70
llvm-svn: 226677
2014-12-02This patch fixes a crash involving use of predefinedFariborz Jahanian1-1/+31
expressions. It fixes crash when mangling name for block's helper function used inside a constructor/destructor. rdar://19065361. llvm-svn: 223136
2014-04-02Render anonymous entities as '(anonymous <thing>)' (and lambdas as '(lambda ↵David Blaikie1-5/+5
at ... )') For namespaces, this is consistent with mangling and GCC's debug info behavior. For structs, GCC uses <anonymous struct> but we prefer consistency between all anonymous entities but don't want to confuse them with template arguments, etc, so we'll just go with parens in all cases. llvm-svn: 205398
2014-01-14Remove the -cxx-abi command-line flag.Hans Wennborg1-1/+1
This makes the C++ ABI depend entirely on the target: MS ABI for -win32 triples, Itanium otherwise. It's no longer possible to do weird combinations. To be able to run a test with a specific ABI without constraining it to a specific triple, new substitutions are added to lit: %itanium_abi_triple and %ms_abi_triple can be used to get the current target triple adjusted to the desired ABI. For example, if the test suite is running with the i686-pc-win32 target, %itanium_abi_triple will expand to i686-pc-mingw32. Differential Revision: http://llvm-reviews.chandlerc.com/D2545 llvm-svn: 199250
2013-12-13Prepare for using MS ABI by default for Win32: update CodeGenCXX testsHans Wennborg1-1/+1
llvm-svn: 197281
2013-09-16Handle PredefinedExpr with templates and lambdasWei Pan1-0/+22
Summary: - lambdas, blocks or captured statements in templates were not handled which causes codegen crashes. Differential Revision: http://llvm-reviews.chandlerc.com/D1628 llvm-svn: 190784
2012-12-14Don't hit an assertion failure when calculating the __PRETTY_FUNCTION__Argyrios Kyrtzidis1-1/+1
of a member function with parenthesized declarator. Like this test case: class Foo { const char *(baz)() { return __PRETTY_FUNCTION__; } }; llvm-svn: 170233
2012-04-10Improve the printing of __PRETTY_FUNCTION__ more provide moreDouglas Gregor1-6/+174
information and more closely match GCC's, from Nikola Smiljanic! llvm-svn: 154430
2011-01-10Add unnamed_addr when creating artificial string globals. For example, inRafael Espindola1-53/+53
static const char foo[] = "foo"; static const char *bar = "bar"; the global created to hold "bar" will have it, but foo will not. llvm-svn: 123192
2009-12-28Fix for PR5871. Make __PRETTY_FUNCTION__ work for member functions defined ↵Sam Weinig1-0/+18
in a class local to a function. llvm-svn: 92200
2009-12-27Fix for PR5872. Add static specifier and const/volatile qualifiers to member ↵Sam Weinig1-5/+35
functions in __PRETTY_FUNCTION__ predefined expressions. llvm-svn: 92171
2009-12-24Fix for PR5844. Be explicit about anonymous struct/class/union/namespaces in ↵Sam Weinig1-5/+80
__PRETTY_FUNCTION__ predefined expression. llvm-svn: 92149
2009-12-15Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar1-1/+1
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
2009-12-06Don't print a void return type for C++ constructors and destructors when ↵Sam Weinig1-4/+4
generating a predefined expr for them. llvm-svn: 90725
2009-10-08Speed up testing by avoiding stdio.h, also helps testing on windows.Mike Stump1-1/+1
Patch by John Thompson. llvm-svn: 83593
2009-09-12Don't use the PredefinedExpr string as the global variable name, these don'tDaniel Dunbar1-35/+35
make very nice symbols, just use the function name. llvm-svn: 81653
2009-09-08Vastly improve PredefinedExpr output, both in Sema and CodeGen. Patch by Sam ↵Anders Carlsson1-0/+226
Weinig! llvm-svn: 81237