summaryrefslogtreecommitdiff
path: root/unittests/AST/SourceLocationTest.cpp
Commit message (Collapse)AuthorAge
* Add first set of tests for FriendDecl source range and location.Nikola Smiljanic2014-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210306 91177308-0d34-0410-b5e6-96231b3b80d8
* Correctly set brace range for CXXConstructExprs formed by list initialization.Peter Collingbourne2014-02-22
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D2711 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201926 91177308-0d34-0410-b5e6-96231b3b80d8
* Sort all the #include lines with LLVM's utils/sort_includes.py whichChandler Carruth2014-01-07
| | | | | | | encodes the canonical rules for LLVM's style. I noticed this had drifted quite a bit when cleaning up LLVM, so wanted to clean up Clang as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198686 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix missing source location in CXXTemporaryObjectExpr nodes.Enea Zaffanella2013-09-07
| | | | | | | | | | For clarity, renamed (get/set)ParenRange as (get/set)ParenOrBraceRange in CXXConstructExpr nodes. Added testcase. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190239 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix source range of implicitly instantiated friend declaration.Enea Zaffanella2013-07-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186702 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed source range of C++03 access declarations.Enea Zaffanella2013-07-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186522 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed testcase failing under MS by adding "-fno-delayed-template-parsing",Enea Zaffanella2013-07-08
| | | | | | | | | as suggested by Takumi. To this end, added a MatchVerifier::match() overload accepting a vector of invocation arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185827 91177308-0d34-0410-b5e6-96231b3b80d8
* AST/SourceLocationTest.cpp: Appease MS hosts to suppress ↵NAKAMURA Takumi2013-07-08
| | | | | | | | CXXUnresolvedConstructExpr.SourceRange, for now. FIXME: It could pass if MS-compatible mode were disabled with Args.push_back("-fno-delayed-template-parsing"). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185795 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed source range for functional cast and unresolved construct expr nodes.Enea Zaffanella2013-07-07
| | | | | | | Added testcases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185773 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed source location info for UnaryTransformTypeLoc nodes.Enea Zaffanella2013-07-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185765 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix source range of CXXNewExpr with parentheses around the type. PR15569.Eli Friedman2013-06-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184139 91177308-0d34-0410-b5e6-96231b3b80d8
* Re-commit r183466 with a fix to make the TypeLoc casting machinery workEli Friedman2013-06-07
| | | | | | | | | | | correctly in the presence of qualified types. (I had to change the unittest because it was trying to cast a QualifiedTypeLoc to TemplateSpecializationTypeLoc.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183563 91177308-0d34-0410-b5e6-96231b3b80d8
* Adds a test that verifies angle bracket locations.Manuel Klimek2013-06-07
| | | | | | | Regression test to make sure TemplateSpecializationTypeLocs have the correct locations for angle brackets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183514 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an error to check that all program scope variables are in the constant ↵Tanya Lattner2013-04-05
| | | | | | address space in OpenCL. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178906 91177308-0d34-0410-b5e6-96231b3b80d8
* PR15095: Use more correct source locations for the InitListExpr we fake up forRichard Smith2013-02-05
| | | | | | | vector initialization. Patch by John Stratton! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174339 91177308-0d34-0410-b5e6-96231b3b80d8
* Move commonly useful code for AST testing into MatchVerfier.h.Manuel Klimek2013-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174057 91177308-0d34-0410-b5e6-96231b3b80d8
* Sort the #include lines for unittests/...Chandler Carruth2012-12-04
| | | | | | I've tried to place sensible headers at the top as main-module headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169243 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a source range regression in C++ new expressions with call initializers.David Blaikie2012-11-08
| | | | | | Introduced in r167507, discovered in review by Abramo Bagnara. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167597 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed converted ConstantArrayTypeLoc range. Added a missing testcase for ↵Abramo Bagnara2012-11-08
| | | | | | ConstructorDecl source range. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167583 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed range of implicit MemberExpr.Abramo Bagnara2012-11-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167581 91177308-0d34-0410-b5e6-96231b3b80d8
* Test for source location range of new expressions fixed in r167507.David Blaikie2012-11-07
| | | | | | Patch by Philip Craig. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167538 91177308-0d34-0410-b5e6-96231b3b80d8
* Add unit tests for source locations of AST nodes.Manuel Klimek2012-11-06
Patch by Philip Craig. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167470 91177308-0d34-0410-b5e6-96231b3b80d8