summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/string-literal.c
Commit message (Collapse)AuthorAgeFilesLines
* When lexing in C11 mode, accept unicode character and string literals, per C11Richard Smith2013-03-091-26/+46
| | | | | | 6.4.4.4/1 and 6.4.5/1. llvm-svn: 176780
* Teach Lexer::getSpelling about raw string literals. Specifically, if a rawRichard Smith2012-11-281-0/+7
| | | | | | | | string literal needs cleaning (because it contains line-splicing in the encoding prefix or in the ud-suffix), do not clean the section between the double-quotes -- that's the "raw" bit! llvm-svn: 168776
* Fix the representation of wide strings in the AST and IR so that it uses the ↵Eli Friedman2011-11-011-15/+15
| | | | | | | | | | native representation of integers for the elements. This fixes a bunch of nastiness involving treating wide strings as a series of bytes. Patch by Seth Cantrell. llvm-svn: 143417
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Make constant aggregate constant initializers private linkage.Eric Christopher2011-08-241-4/+4
| | | | | | | | | After talking with John making this the case for all of these is the right way to go. Fixes rdar://9804564 and PR10414 llvm-svn: 138418
* Add tests for string literal concatenation.Craig Topper2011-08-111-0/+15
| | | | llvm-svn: 137302
* Add support for C++0x raw string literals.Craig Topper2011-08-111-1/+24
| | | | llvm-svn: 137298
* Emit wide string literals with the appropriate alignment.John McCall2011-08-041-8/+8
| | | | | | Patch by Craig Topper and Sundeep! llvm-svn: 136856
* This patch makes the string/character literal tests run in C,Douglas Gregor2011-07-291-11/+20
| | | | | | C++98/03, and C++0x mode, from Craig Topper! llvm-svn: 136443
* Add support for C++0x unicode string and character literals, from Craig Topper!Douglas Gregor2011-07-271-3/+20
| | | | llvm-svn: 136210
* Add unnamed_addr to internal globals which are only used as an operand to ↵Eli Friedman2011-05-271-2/+2
| | | | | | memcpy. (Spotted by looking at IR.) llvm-svn: 132226
* Match llvm-gcc's string literals alignment by forcing alignment on string ↵Eli Friedman2011-05-271-2/+2
| | | | | | literals to 1. This can significantly impact the size of the string data, and as far as I know, the alignment doesn't help performance. rdar://9078969 . llvm-svn: 132223
* Add unnamed_addr when creating artificial string globals. For example, inRafael Espindola2011-01-101-2/+2
| | | | | | | | | 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
* tests: Force a triple to avoid wchar_t differences.Daniel Dunbar2010-10-071-1/+1
| | | | llvm-svn: 115970
* Add support for 4-byte UCNs like \U12345678. Warn about UCNs in c90 mode.Nico Weber2010-10-061-1/+10
| | | | llvm-svn: 115743
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-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
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* fix some sema problems with wide strings and hook up basic codegen for them.Chris Lattner2009-02-261-0/+2
| | | | llvm-svn: 65582
* eliminate some random .ll file outputsChris Lattner2009-01-271-1/+1
| | | | llvm-svn: 63117
* Update a number of CodeGen tests to not create .ll files in the testDaniel Dunbar2008-08-211-1/+1
| | | | | | | | directory. - Removed .ll from the svn:ignore lists to try and prevent this. - Added svn:ignore on test/Misc/Output llvm-svn: 55104
* no need to verify this, no errors/warnings are expected.Chris Lattner2007-12-271-1/+1
| | | | llvm-svn: 45371
* String literal in aggregate expressionSeo Sanghyeon2007-12-231-0/+5
llvm-svn: 45330
OpenPOWER on IntegriCloud