summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Allow to pass from syntactic form of InitListExpr to semantic form (just as ↵Abramo Bagnara2012-11-084-17/+39
| | | | | | viceversa). No functionality change. llvm-svn: 167591
* Avoid to write function name in comment. Thanks to Dmitri Gribenko.Abramo Bagnara2012-11-081-7/+6
| | | | llvm-svn: 167588
* Readded line removed by mistake.Abramo Bagnara2012-11-081-0/+1
| | | | llvm-svn: 167587
* Fixed converted ConstantArrayTypeLoc range. Added a missing testcase for ↵Abramo Bagnara2012-11-082-20/+89
| | | | | | ConstructorDecl source range. llvm-svn: 167583
* Fixed range of implicit MemberExpr.Abramo Bagnara2012-11-082-2/+13
| | | | llvm-svn: 167581
* Set TLSSupported to false on Haiku.Benjamin Kramer2012-11-082-0/+4
| | | | | | | | | | | Haiku does not support this (yet). Leaving it set to true leads to configure scripts detecting __thread being available and Clang emitting code for it, resulting in binaries the runtime_loader will refuse to load. Patch by Jonathan Schleifer! llvm-svn: 167576
* Driver/Darwin: The -arch argument values aren't exactly the arch names from aDaniel Dunbar2012-11-084-1/+27
| | | | | | | | triple. - Translate the special case of powerpc to its expected -arch name. llvm-svn: 167571
* Rip out a bunch of code for invoking gcc from clang.Bob Wilson2012-11-088-804/+35
| | | | llvm-svn: 167567
* Remove code to fall back to llvm-gcc for i386 kexts.Bob Wilson2012-11-085-86/+3
| | | | | | More cleanups to follow in separate commits.... llvm-svn: 167566
* PR14284: crash on ext-valid returning NULL from a void functionDavid Blaikie2012-11-082-1/+4
| | | | llvm-svn: 167565
* When deciding whether to convert an array construction loop into a memcpy, lookRichard Smith2012-11-072-12/+31
| | | | | | | | at whether the *selected* constructor would be trivial rather than considering whether the array's element type has *any* non-trivial constructors of the relevant kind. llvm-svn: 167562
* Force C89 for c-index-test.cDmitri Gribenko2012-11-071-0/+7
| | | | | | | | | | | MSVC supports only C89, so it is important to keep c-index-test.c buildable with C89. However, Clang defaults to C99, so while building Clang with Clang one can introduce C99 constructs into c-index-test.c without noticing. Thanks to Nakamura Takumi for helping with MSVC bits. llvm-svn: 167561
* [Driver] Fix -Wp,-MMD pr13959Michael J. Spencer2012-11-072-3/+11
| | | | llvm-svn: 167559
* Reduce nesting. No functionality change.Nico Weber2012-11-071-12/+14
| | | | llvm-svn: 167551
* When template deduction fails on a derived class, try a template deduction onRichard Trieu2012-11-072-1/+18
| | | | | | | | | | the base class. If the base class deduction succeeds, use those results. If it fails, keep using the results from the derived class template deduction. This prevents an assertion later where the type of deduction failure doesn't match up with the template deduction info. llvm-svn: 167550
* objective-C blocks: bring back the CharUnit patch forFariborz Jahanian2012-11-071-45/+46
| | | | | | | captured block variable layout meta-data. No intended change in functionality. llvm-svn: 167549
* PR12713 - crash on invalid due to unmatched parens in decltypeDavid Blaikie2012-11-072-2/+9
| | | | llvm-svn: 167547
* objective-C modern translator. Start the lineFariborz Jahanian2012-11-071-1/+1
| | | | | | directive on a new line. llvm-svn: 167542
* When loading a module fails because it is out of date, rebuild thatDouglas Gregor2012-11-078-13/+111
| | | | | | module in place. <rdar://problem/10138913> llvm-svn: 167539
* Test for source location range of new expressions fixed in r167507.David Blaikie2012-11-071-0/+6
| | | | | | Patch by Philip Craig. llvm-svn: 167538
* [analyzer] Check that the argument to CFMakeCollectable is non-NULL.Jordan Rose2012-11-076-19/+37
| | | | | | Patch by Sean McBride! llvm-svn: 167537
* Fix the Objective-C exception rethrow from cleanups (GNU runtimes). Note thatDavid Chisnall2012-11-074-8/+10
| | | | | | | a bug in the inliner still causes the wrong thing to happen at -O2 and above (PR14116). llvm-svn: 167534
* [analyzer] Add some examples for the common REGISTER_*_WITH_PROGRAMSTATEs.Jordan Rose2012-11-071-4/+24
| | | | | | No functionality change (doc comments only). llvm-svn: 167523
* [analyzer] Enhance docs for checker callbacks (esp. processRegionChanges).Jordan Rose2012-11-071-13/+28
| | | | | | No functionality change; this checker is only used for documentation. llvm-svn: 167522
* Add -Wmismatched-return-types flag for existing warning on conflicting ↵Ted Kremenek2012-11-073-3/+4
| | | | | | return types. llvm-svn: 167518
* Add -Wmismatched-parameter-types flag for existing warning on conflicting ↵Ted Kremenek2012-11-073-3/+5
| | | | | | parameter types. llvm-svn: 167515
* PR11851 (and duplicates): Whenever a constexpr function is referenced,Richard Smith2012-11-075-27/+178
| | | | | | | | | instantiate it if it can be instantiated and implicitly define it if it can be implicitly defined. This matches g++'s approach. Remove some cases from SemaOverload which were marking functions as referenced when just planning how overload resolution would proceed; such cases are not actually references. llvm-svn: 167514
* modern ObjC translator. Insert line number for @synchronized statements.Fariborz Jahanian2012-11-071-1/+3
| | | | llvm-svn: 167511
* Add missing check to warning for packed attribute. PR14259.Eli Friedman2012-11-072-1/+11
| | | | llvm-svn: 167510
* Create helper functions in StmtDumper for outputting the indentation, ↵Manuel Klimek2012-11-073-57/+127
| | | | | | | | | | newlines, and brackets. This is preparation for adding Decl dumping. Patch by Philip Craig. llvm-svn: 167509
* PR13552: Fix the end location of a CXXNewExpr.David Blaikie2012-11-076-26/+15
| | | | | | | | | Spent longer than reasonable looking for a nice way to test this & decided to give up for now. Open to suggestions/requests. Richard Smith suggested adding something to ASTMatchers but it wasn't readily apparent how to test this with that. llvm-svn: 167507
* Fix assertion failure with auto and nested initializer list; PR14272.Eli Friedman2012-11-062-2/+7
| | | | llvm-svn: 167506
* Tease out the routine that reads the control block of an AST file fromDouglas Gregor2012-11-062-26/+41
| | | | | | the validation of an AST file against a specific set of options. llvm-svn: 167504
* Put something sane in the DWARF offset field for bitfield ObjC ivars.Eli Friedman2012-11-064-6/+53
| | | | | | | | | This is useful because unnamed bitfields can have effects on the offsets which are not otherwise reflected in the DWARF information. <rdar://problem/12629719> llvm-svn: 167503
* objective-C modern rewriter. Insert line numbers inFariborz Jahanian2012-11-061-11/+44
| | | | | | | translated code where new code makes the lines be off. This is wip. llvm-svn: 167500
* RewriteModernObjC.cpp: Use Lexer::Stringify() on the file name of #line ↵NAKAMURA Takumi2012-11-061-1/+1
| | | | | | directive to escape Win32 path separator '\\'. llvm-svn: 167497
* Implement codegen for init_priority attribute properly - make sure itAnton Korobeynikov2012-11-063-19/+94
| | | | | | | | works between the modules. No functionality change on Darwin/Windows. This fixes PR11480. llvm-svn: 167496
* Back out 167431+167437+167487; I didn't realize how incomplete our testEli Friedman2012-11-064-135/+141
| | | | | | coverage of this code is. llvm-svn: 167495
* clang/lib/Driver/Tools.cpp: Fix abuse of StringRef.NAKAMURA Takumi2012-11-061-1/+1
| | | | llvm-svn: 167494
* [libclang] Add some comments about the version constants for the libclang API.Argyrios Kyrtzidis2012-11-061-0/+8
| | | | llvm-svn: 167489
* Fix a silly mistake in r167437.Eli Friedman2012-11-062-18/+38
| | | | llvm-svn: 167487
* clang/test/Driver/fsanitize.c: Speculative fix to improve test on win32, not ↵NAKAMURA Takumi2012-11-061-5/+5
| | | | | | to mix emissions into stdout. llvm-svn: 167485
* Remove C++11-isms I just introduced in r167482Douglas Gregor2012-11-061-3/+3
| | | | llvm-svn: 167483
* Introduce inferred framework modules into the module map file,Douglas Gregor2012-11-068-90/+324
| | | | | | | | | | | | | | allowing a module map to be placed one level above the '.framework' directories to specify that all .frameworks within that directory can be inferred as framework modules. One can also specifically exclude frameworks known not to work. This makes explicit (and more restricted) behavior modules have had "forever", where *any* .framework was assumed to be able to be built as a module. That's not necessarily true, so we white-list directories (with exclusions) when those directories have been audited. llvm-svn: 167482
* Teach Clang parser to reject C++11 attributes that appertain to declaration ↵Michael Han2012-11-066-7/+37
| | | | | | | | | specifiers. We don't support any C++11 attributes that appertain to declaration specifiers so reject the attributes in parser until we support them; this also conforms to what g++ 4.8 is doing. llvm-svn: 167481
* Updates to user's manual and release notes for -fsanitize= options.Richard Smith2012-11-062-31/+66
| | | | llvm-svn: 167479
* [c-index-test] When building with BUILD_CLANG_ONLY=YES, include c-index-test.Argyrios Kyrtzidis2012-11-061-1/+1
| | | | | | It is part of libclang and has other uses besides running the clang tests. llvm-svn: 167478
* Cleanup: 80-column violationManman Ren2012-11-061-4/+6
| | | | llvm-svn: 167476
* Use the -fsanitize=thread flag to unbreak buildbot.Chad Rosier2012-11-061-5/+5
| | | | llvm-svn: 167472
* Add unit tests for source locations of AST nodes.Manuel Klimek2012-11-062-0/+253
| | | | | | Patch by Philip Craig. llvm-svn: 167470
OpenPOWER on IntegriCloud