aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/predefined-expr.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-09Fix compatibility issues in tests for PredefinedExpr with MSVC.Alexey Bataev1-2/+2
llvm-svn: 219405
2014-04-07-fms-extensions: Don't define __PRETTY_FUNCTION__ to __FUNCTION__Reid Kleckner1-0/+1
This reverts r90596 from 2009. Having this macro definition makes Clang strictly less useful with -fms-extensions. llvm-svn: 205729
2013-08-26Handle predefined expression for a captured statementWei Pan1-0/+12
- __func__ or __FUNCTION__ returns captured statement's parent function name, not the one compiler generated. Differential Revision: http://llvm-reviews.chandlerc.com/D1491 Reviewed by bkramer llvm-svn: 189219
2011-01-10Add unnamed_addr when creating artificial string globals. For example, inRafael Espindola1-8/+8
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-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-11-17Don't #include <stdio.h> when tests don't need it, or use clang instead of ↵Daniel Dunbar1-1/+1
clang-cc when they do. llvm-svn: 89070
2009-09-12Don't use the PredefinedExpr string as the global variable name, these don'tDaniel Dunbar1-4/+4
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/+45
Weinig! llvm-svn: 81237