summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fixing a test case which was failing the MSVC build bots. When -std isn't ↵Aaron Ballman2014-05-291-1/+1
| | | | | | | | specified with an MSVC build, it defaults to -std=c++11, which overrides the -x cuda option. In turn, this causes all CUDA language option checks to fail. This fix is possibly temporary while we determine whether -x cuda should be considered along with -std=c++11 when setting language options. llvm-svn: 209808
* Refactoring. Remove release and take methods from ActionResult. Rename ↵Nikola Smiljanic2014-05-2938-812/+806
| | | | | | takeAs to getAs. llvm-svn: 209800
* When merging functions across modules (and in particular, instantiations ofRichard Smith2014-05-296-4/+78
| | | | | | | member functions), ensure that the redecl chain never transitions from 'inline' to 'not inline', since that violates an AST invariant. llvm-svn: 209794
* Implement a convenience recursive walk method over a cursor and its descendants.Eli Bendersky2014-05-292-29/+21
| | | | | | | | | | | | | Before r160106 there was a way to recursively visit all descendants of a cursor via Cursor_visit, but it was removed. Since then, every user needs to reimplement the recursive descent into get_children. Adding a walk_preorder() method to Cursor that conveniently implements recursive walking in a Pythonic way. This also greatly simplifies get_cursor and get_cursors in tests/cindex/util.py (walk_preorder is now tested through these utility functions, since they are used in many tests). llvm-svn: 209793
* [ASan] Hoist blacklisting globals from init-order checking to Clang.Alexey Samsonov2014-05-292-6/+14
| | | | | | | | | Clang knows about the sanitizer blacklist and it makes no sense to add global to the list of llvm.asan.dynamically_initialized_globals if it will be blacklisted in the instrumentation pass anyway. Instead, we should do as much blacklisting as possible (if not all) in the frontend. llvm-svn: 209789
* PR19878: If a pack expansion appears within another pack expansion, correctlyRichard Smith2014-05-293-199/+204
| | | | | | deduce any packs that are expanded by both expansions. llvm-svn: 209786
* Thread Safety Analysis: update TIL traversal mechanism to allow arbitraryDeLesley Hutchins2014-05-287-358/+594
| | | | | | local contexts. Also includes some minor refactoring. llvm-svn: 209774
* added Intel's BMI intrinsic variants Sanjay Patel2014-05-282-2/+120
| | | | | | (fixes PR19431 - http://llvm.org/bugs/show_bug.cgi?id=19431) llvm-svn: 209769
* Expose CUDA function attributes to the C interface.Eli Bendersky2014-05-285-2/+38
| | | | | | | | Until now all CUDA-specific attributes were represented with CXCursor_UnexposedAttr; now they are actually implemented, including the Python bindings. llvm-svn: 209767
* Reverting 209503 - Breaks asan blacklistsWarren Hunt2014-05-282-10/+1
| | | | | | | | I opened a discussion on cfe-commits. Ideally we've got a few things that need to happen. CompilerRT should probably have blacklists tests. Asan should probably not depend on that specific field. llvm-svn: 209766
* Debug Info: Fix the source range for IfStmt's ConditionScope.Adrian Prantl2014-05-282-1/+21
| | | | | | | | | | Since the continuation block of the if statement is emitted within the condition scope this had the undesirable effect of creating a line table entry at the end of the then or else statement, a line that may have never been executed. PR19864 / rdar://problem/17052973 llvm-svn: 209764
* Move misplaced Documentation note in Attr.tdReid Kleckner2014-05-281-3/+2
| | | | llvm-svn: 209761
* Objective-C. Diagnose use of properties in functions nested in, Fariborz Jahanian2014-05-283-1/+36
| | | | | | | now deprecated, ObjC containers instead of crashing. // rdar://16859666 llvm-svn: 209758
* Trim trailing whitespace in cindex.pyEli Bendersky2014-05-281-6/+6
| | | | llvm-svn: 209754
* Objective-C. Deprecate use of function definitionsFariborz Jahanian2014-05-284-0/+35
| | | | | | | in Objective-C container declarations (but not in their definitions. // rdar://10414277 llvm-svn: 209751
* [DOC] Documentation for #pragma clang optimize on/offDario Domizioli2014-05-281-0/+79
| | | | llvm-svn: 209738
* -pthread does not translate to -lpthread on Android.Evgeniy Stepanov2014-05-282-2/+78
| | | | | | | There is no libpthread.so, and pthread interface is implemented in libc.so. This mirrors gcc behavior. llvm-svn: 209731
* Add a PR reference for XFAILed testAlp Toker2014-05-281-0/+2
| | | | llvm-svn: 209730
* Test requires exceptionsAlp Toker2014-05-281-1/+1
| | | | | | It's still XFAIL, but slightly closer to passing. llvm-svn: 209729
* Consolidate some note diagnosticsAlp Toker2014-05-287-34/+21
| | | | | | | | | These note diags have the same message and can be unified further but for now let's just bring them together. Incidental change: Display a source range in the final attr diagnostic. llvm-svn: 209728
* Fix line endings.Nikola Smiljanic2014-05-283-124/+124
| | | | llvm-svn: 209727
* Let clang/test/CodeGen/pr19841.cpp tolerant of MS mangler.NAKAMURA Takumi2014-05-281-1/+2
| | | | llvm-svn: 209726
* clang-format: Don't break before a case's colon.Daniel Jasper2014-05-282-4/+12
| | | | | | | | | | | | | | | | | | Before (with just the right line length: switch (a) { case some_namespace::some_constant : return; } After: switch (a) { case some_namespace:: some_constant: return; } llvm-svn: 209725
* Add 'nonnull' parameter or return attribute when producing an llvm pointer ↵Nick Lewycky2014-05-2855-266/+268
| | | | | | type in a function type where the C++ type is a reference. Update the tests. llvm-svn: 209723
* clang-format: Format array and dict literals similar to blocks.Daniel Jasper2014-05-282-48/+70
| | | | | | | | | | | | | | | | | | | | | | | Especially, reduce the amount of indentation if it doesn't increase readability. Before: NSMutableDictionary* dictionary = [NSMutableDictionary dictionaryWithDictionary:@{ aaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbb : bbbbb, cccccccccccccccc : ccccccccccccccc }]; After: NSMutableDictionary* dictionary = [NSMutableDictionary dictionaryWithDictionary:@{ aaaaaaaaaaaaaaaaaaaaa : aaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbb : bbbbb, cccccccccccccccc : ccccccccccccccc }]; llvm-svn: 209720
* [OPENMP] Additional checking for local vars in initial values for ↵Alexey Bataev2014-05-283-1/+41
| | | | | | threadprivate vars llvm-svn: 209716
* [OPENMP] Reformatting of parsing code for OpenMP constructs.Alexey Bataev2014-05-281-43/+38
| | | | llvm-svn: 209714
* [OPENMP][C++11] Formatting and make more C++11 compliant of OpenMP sema.Alexey Bataev2014-05-281-256/+249
| | | | llvm-svn: 209713
* Move the logic for testing for namespace std into one location. This check canRichard Trieu2014-05-289-39/+34
| | | | | | be performed by using Decl::isInStdNamespace or DeclContext::isStdNamespace llvm-svn: 209708
* Don't dllimport/export destructor variants implemented by thunks.Hans Wennborg2014-05-283-29/+28
| | | | | | | | | | | | MSVC doesn't export these functions, so trying to import them doesnt' work. Also, don't let any dll attributes on the CXXDestructorDecl influence the thunk's linkage -- they should always be linkonce_odr. This takes care of the FIXME's for this in Nico's tests. Differential Revision: http://reviews.llvm.org/D3930 llvm-svn: 209706
* Retain isImplicit flag for local variable declarations when instantiatingAlexander Kornienko2014-05-274-7/+25
| | | | | | | | | | | | | | templates. Reviewers: rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3924 llvm-svn: 209686
* Add a test that we don't store stale modtime in modulesBen Langmuir2014-05-271-0/+37
| | | | | | | | | | | The change from r209195 turned out to be important to avoid saving stale modification time/expected size information in a module file when there are 3 or more modules in a dependency chain and the bottom one is rebuilt. So add a test for that. rdar://problem/17038180 llvm-svn: 209682
* Add range accessors for captures of a LambdaExpr.James Dennett2014-05-272-0/+24
| | | | | | | | | | | | | Summary: This adds LambdaExpr::captures(), LambdaExpr::explicit_captures() and LambdaExpr::implicit_captures() as simple wrappers over the underlying *_begin()/*_end() functions. Reviewers: aaron.ballman Differential Revision: http://reviews.llvm.org/D3926 llvm-svn: 209679
* Objective-C. Fixes an obscuer crash caused by multiple inclusion ofFariborz Jahanian2014-05-272-1/+30
| | | | | | | same framework after complaining about duplicate class definition. // rdar://17024681 llvm-svn: 209672
* Fix pr19841, bb are also unnamedRenato Golin2014-05-271-1/+1
| | | | llvm-svn: 209668
* Fix pr19841.cpp on release modeRenato Golin2014-05-271-1/+1
| | | | llvm-svn: 209666
* Revert small change to EmitDeclRefLValueRenato Golin2014-05-272-9/+36
| | | | | | | That small change, although it looked harmless, it made emitting the LValue on the PHI node without the proper cast. Reverting it fixes PR19841. llvm-svn: 209663
* ASTMatchers.h: Appease msc17.NAKAMURA Takumi2014-05-271-2/+2
| | | | llvm-svn: 209661
* Parsing/Sema for OMPCollapseClause.Alexander Musman2014-05-2717-7/+309
| | | | | | Actual usage in Sema for collapsing loops will in some future patch. llvm-svn: 209660
* Make equalsNode work with pointers to subtypes.Manuel Klimek2014-05-274-14/+36
| | | | llvm-svn: 209652
* Adds child traversal matchers for IfStmt's then and else branches.Manuel Klimek2014-05-273-0/+53
| | | | llvm-svn: 209649
* Allow hasBody on CXXForRangeStmt nodes and update the docs.Manuel Klimek2014-05-274-10/+46
| | | | llvm-svn: 209647
* [C++11] Use 'nullptr'. StaticAnalyzer edition.Craig Topper2014-05-2765-530/+550
| | | | llvm-svn: 209642
* Rejecting the mutable specifier on a freestanding type declaration, instead ↵Aaron Ballman2014-05-262-5/+9
| | | | | | of supporting it as a "extension" (which serves no purpose). Un-XFAILing the test for mutable specifiers. llvm-svn: 209635
* clang-format: Split up moveStateToNextToken.Daniel Jasper2014-05-262-120/+163
| | | | | | No functional changes intended. llvm-svn: 209626
* clang-format: Keep '{' of dict literals on the same line in Allman styleDaniel Jasper2014-05-262-4/+12
| | | | | | | | | | | | | | | | | | | | Before: void f() { [object someMethod:@ { @"a" : @"b" }]; } After: void f() { [object someMethod:@{ @"a" : @"b" }]; } This fixes llvm.org/PR19854. llvm-svn: 209615
* [C++11] Use 'nullptr'. Sema edition.Craig Topper2014-05-2642-1722/+1790
| | | | llvm-svn: 209613
* [C++11] Use 'nullptr'.Craig Topper2014-05-264-8/+8
| | | | llvm-svn: 209612
* Sema: Add dll attribute tests for member functionsNico Rieck2014-05-253-1/+780
| | | | llvm-svn: 209598
* Sema: Add dll attribute tests for variable templatesNico Rieck2014-05-252-0/+157
| | | | llvm-svn: 209597
OpenPOWER on IntegriCloud