summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/literal-operators.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve diagnostics for ill-formed literal operator declarations.Richard Smith2016-02-171-3/+4
| | | | | | Patch by Erik Pilkington! llvm-svn: 261034
* When pretty-printing a C++11 literal operator, don't insert whitespace betweenRichard Smith2015-10-081-4/+8
| | | | | | | the "" and the suffix; that breaks names such as 'operator""if'. For symmetry, also remove the space between the 'operator' and the '""'. llvm-svn: 249641
* Fix crash if a literal operator template's template parameter pack is not a ↵Richard Smith2012-08-031-0/+1
| | | | | | non-type template parameter pack. Patch by Andy Gibbs! llvm-svn: 161260
* PR12225: The requirement that literal operators be namespace-scope functionsRichard Smith2012-03-101-1/+1
| | | | | | does not imply that such functions can't be declared at block scope. llvm-svn: 152509
* Add tests for [over.literal]. Fix a few bugs which were exposed by the tests.Richard Smith2012-03-041-3/+3
| | | | llvm-svn: 151997
* 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
* Allow C99 hexfloats in C++0x mode. This change resolves the standardsDouglas Gregor2011-08-301-19/+19
| | | | | | | | | collision between C99 hexfloats and C++0x user-defined literals by giving C99 hexfloats precedence. Also, warning about user-defined literals that conflict with hexfloats and those that have names that are reserved by the implementation. Fixes <rdar://problem/9940194>. llvm-svn: 138839
* Revert my user-defined literal commits - r1124{58,60,67} pendingAlexis Hunt2010-08-301-11/+32
| | | | | | some issues being sorted out. llvm-svn: 112493
* Implement C++0x user-defined string literals.Alexis Hunt2010-08-291-32/+11
| | | | | | | | | | The extra data stored on user-defined literal Tokens is stored in extra allocated memory, which is managed by the PreprocessorLexer because there isn't a better place to put it that makes sure it gets deallocated, but only after it's used up. My testing has shown no significant slowdown as a result, but independent testing would be appreciated. llvm-svn: 112458
* Implement semantic checking for C++ literal operators.Alexis Hunt2010-01-131-0/+43
This now rejects literal operators that don't meet the requirements. Templates are not yet checked for. llvm-svn: 93315
OpenPOWER on IntegriCloud