summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-ambig-paren-expr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Teach TryAnnotateTypeOrScopeToken to deal with already-annotatedJohn McCall2009-12-191-0/+40
| | | | | | | scope specifiers. Fix a tentative parsing bug that came up in LLVM. Incidentally fixes some random FIXMEs in an existing testcase. llvm-svn: 91734
* 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
* Implement C++ semantics for C-style and functional-style casts. This ↵Sebastian Redl2009-07-251-3/+3
| | | | | | | | regresses Clang extension conversions, like vectors, but allows conversions via constructors and conversion operators. Add custom conversions to static_cast. llvm-svn: 77076
* Use "()" instead of "(void)" when pretty-printing a parameter-less function ↵Argyrios Kyrtzidis2009-06-031-3/+3
| | | | | | type for C++. llvm-svn: 72747
* PR4122: Tweak the ambiguity handling to handle (S())() correctly. I've Eli Friedman2009-05-251-0/+7
| | | | | | left out handling for stuff like (S())++ for the moment. llvm-svn: 72394
* Add a test case to make sure that an ambiguous paren expression is only ↵Argyrios Kyrtzidis2009-05-221-1/+5
| | | | | | parsed once. llvm-svn: 72298
* Handle correctly a very ugly part of the C++ syntax. We cannot disambiguate ↵Argyrios Kyrtzidis2009-05-221-0/+15
between a parenthesized type-id and a paren expression without considering the context past the parentheses. Behold: (T())x; - type-id (T())*x; - type-id (T())/x; - expression (T()); - expression llvm-svn: 72260
OpenPOWER on IntegriCloud