summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Extend format string type-checking to include '%p'. Fixes remaining cases ↵Ted Kremenek2010-06-163-0/+10
| | | | | | PR 4468. llvm-svn: 106151
* Canonicalize template template parameters when canonicalizing aDouglas Gregor2010-06-161-0/+16
| | | | | | | template name that refers to such a parameter. It's amazing that this problem didn't surface earlier. Fixes PR7387. llvm-svn: 106147
* tests: Update Frontend config to actually run ir-support tests.Daniel Dunbar2010-06-161-0/+1
| | | | llvm-svn: 106144
* Change the test for which ABI/CC to use on ARM to be base on the environmentRafael Espindola2010-06-162-2/+2
| | | | | | (the last argument of the triple). llvm-svn: 106131
* Make sure result type of objc++ message expression isFariborz Jahanian2010-06-161-0/+26
| | | | | | | complete before attempting to bind it to a temporary. Fixes PR7386. llvm-svn: 106130
* A a new test for my previous patch.Rafael Espindola2010-06-161-0/+18
| | | | llvm-svn: 106120
* Fix tests that I missed from my previous commit.Rafael Espindola2010-06-165-40/+39
| | | | llvm-svn: 106118
* Don't poke at an undefined class type of a field. Fixes PR7355.Douglas Gregor2010-06-161-0/+9
| | | | llvm-svn: 106111
* Downgrade the error when using a typedef in the nested-name-specifierDouglas Gregor2010-06-161-3/+3
| | | | | | | of an explicit instantiation to an ExtWarn, since nobody else seems to diagnose this problem. llvm-svn: 106109
* If a non-dependent base class initializer fails to match any direct orDouglas Gregor2010-06-161-0/+22
| | | | | | | | virtual base class, but the class still has dependent base classes, then don't diagnose the failed match as an error: the right base class might magically appear. Fixes PR7259. llvm-svn: 106103
* Fix the build. Using declarations should not be considering when lookingJohn McCall2010-06-161-0/+18
| | | | | | for overridden virtual methods. llvm-svn: 106096
* Fix a point of semantics with using declaration hiding: method templatesJohn McCall2010-06-162-8/+45
| | | | | | | | | | | | | | | | | introduced by using decls are hidden even if their template parameter lists or return types differ from the "overriding" declaration. Propagate using shadow declarations around more effectively when looking up template-ids. Reperform lookup for template-ids in member expressions so that access control is properly set up. Fix some number of latent bugs involving template-ids with totally invalid base types. You can only actually get these with a scope specifier, since otherwise the template-id won't parse as a template-id. Fixes PR7384. llvm-svn: 106093
* Add StreamChecker. This checker models and checks stream manipulation functions.Zhongxing Xu2010-06-161-0/+12
| | | | | | This is the start. llvm-svn: 106082
* Start mangling function types in the Microsoft C++ Mangler.Charles Davis2010-06-161-1/+13
| | | | llvm-svn: 106081
* Moved objective-c++ code gen. tests to their own directory andFariborz Jahanian2010-06-153-0/+28
| | | | | | added a new test case (related to radar 8070772). llvm-svn: 106067
* Patch adds support for copying of thoseFariborz Jahanian2010-06-152-0/+130
| | | | | | | | objective-c++ class objects which have GC'able objc object pointers and need to use ObjC's objc_memmove_collectable API (radar 8070772). llvm-svn: 106061
* Update equality and relationship comparisons of pointers to reflectDouglas Gregor2010-06-151-0/+8
| | | | | | | | | C++ semantics, eliminating an extension diagnostic that doesn't match C++ semantics (ordered comparison with NULL) and tightening some extwarns to errors in C++ to match GCC and maintain conformance in SFINAE contexts. Fixes <rdar://problem/7941392>. llvm-svn: 106050
* Teach code completion not to ignore data members when performing codeDouglas Gregor2010-06-151-0/+13
| | | | | | completion for expressions. llvm-svn: 106037
* add a testcase, from Michael SpencerChris Lattner2010-06-151-0/+5
| | | | llvm-svn: 106026
* Remove a dead argument to ProcessUCNEscape.Chris Lattner2010-06-151-0/+5
| | | | | | | | | | Fix string concatenation to treat escapes in concatenated strings that are wide because of other string chunks to process the escapes as wide themselves. Before we would warn about and miscompile the attached testcase. This fixes rdar://8040728 - miscompile + warning: hex escape sequence out of range llvm-svn: 106012
* Implement -fvisibility-inlines-hidden. <rdar://problem/7819834>Douglas Gregor2010-06-151-0/+57
| | | | llvm-svn: 106003
* Fix typo.Benjamin Kramer2010-06-151-1/+1
| | | | llvm-svn: 105993
* Change AnalysisConsumer to analyze functions created by instantiantiating a ↵Ted Kremenek2010-06-151-0/+10
| | | | | | macro. Fixes PR 7361. llvm-svn: 105984
* Make sure to set the visible on a vtable; VTTs and typeinfo alreadyDouglas Gregor2010-06-141-1/+19
| | | | | | handle visibility properly. Fixes <rdar://problem/8091955>. llvm-svn: 105977
* Add name mangling for address spaces. We use the vendor-extensionDouglas Gregor2010-06-141-0/+6
| | | | | | | mangling for types, where the <source-name> is ASxxx (xxx is the address-space number). llvm-svn: 105975
* Warn when a 'typename' or a 'template' keyword refers to aDouglas Gregor2010-06-145-14/+16
| | | | | | | non-dependent type or template name, respectively, in C++98/03. Fixes PR7111 and <rdar://problem/8002682>. llvm-svn: 105968
* Driver: Fix PR4062 by dissecting one particular -Wp, form.Daniel Dunbar2010-06-141-0/+13
| | | | llvm-svn: 105966
* Driver: Dissect -Wl, and -Xlinker arguments to remove --no-demangle, which was aDaniel Dunbar2010-06-141-0/+9
| | | | | | collect2 option that is passed by some projects (notably WebKit). llvm-svn: 105964
* Enable basic testing of __builtin_fpclassify.Benjamin Kramer2010-06-141-2/+3
| | | | llvm-svn: 105937
* Microsoft C++ Mangler:Charles Davis2010-06-141-2/+17
| | | | | | | | - Mangle qualifiers. - Start mangling variables' types into the name. A variable declared with a builtin type should now mangle properly. llvm-svn: 105931
* Allow an asm label specifier on C++ methods, like GCC does.Chris Lattner2010-06-131-0/+4
| | | | | | Patch by David Majnemer! llvm-svn: 105909
* fix PR7360: -P mode turns off line markers, but not blank space.Chris Lattner2010-06-121-2/+2
| | | | | | | Apparently some programs which abuse the preprocessor depend on this. llvm-svn: 105889
* Microsoft C++ Mangler:Charles Davis2010-06-121-2/+8
| | | | | | | - Don't mangle static variables at global scope. - Add support for mangling builtin types. This will be used later. llvm-svn: 105881
* When deciding whether an expression has the boolean nature, don't look throughJohn McCall2010-06-121-0/+11
| | | | | | explicit casts. Fixes PR7359. llvm-svn: 105871
* Fix PCH issue. Attributes of a declaration were truncated to just one when ↵Argyrios Kyrtzidis2010-06-111-1/+1
| | | | | | the decl was read from a PCH file. llvm-svn: 105852
* Preprocessor: Ignore unknown pragmas in -E -dM and -Eonly modes.Daniel Dunbar2010-06-111-0/+4
| | | | llvm-svn: 105830
* Fix the constant evaluator for AltiVec-style vector literals so that theJohn McCall2010-06-111-0/+4
| | | | | | | vector is filled with the given constant; we were just initializing the first element. llvm-svn: 105824
* Allow pseudo-destructors to be called on qualified pointers. Patch byJohn McCall2010-06-111-0/+12
| | | | | | Troy Straszheim! llvm-svn: 105823
* Provide an Objective C mangling for wchar_t. Patch by Nico Weber!John McCall2010-06-111-0/+1
| | | | llvm-svn: 105818
* Conversions from Objective C object pointers to bool are "pointer conversionsJohn McCall2010-06-111-0/+9
| | | | | | to bool" in the sense of C++ [over.ics.rank]p4 bullet 1. I have decreed it. llvm-svn: 105817
* Add an option -fshow-overloads=best|all to limit the number of overloadJeffrey Yasskin2010-06-111-2/+3
| | | | | | | candidates printed. We default to 'all'. At the moment, 'best' prints only the first 4 overloads, but we'll improve that over time. llvm-svn: 105815
* When mangling for the Microsoft C++ ABI, mangle variables in the globalCharles Davis2010-06-111-1/+2
| | | | | | namespace, too. llvm-svn: 105809
* Small fixes regarding printf fix suggestions.Tom Care2010-06-111-3/+11
| | | | | | | | | | | | - Added some handling of flags that become invalid when changing the conversion specifier. - Changed fixit behavior to remove unnecessary length modifiers. - Separated some tests out and added some comments. modified: lib/Analysis/PrintfFormatString.cpp test/Sema/format-strings-fixit.c llvm-svn: 105807
* Start implementing the Microsoft-style name mangler. Mangle simple namesCharles Davis2010-06-111-0/+6
| | | | | | | | | | | (but not their types; that's later). NOTE: Right now, variables in the global namespace don't get mangled, even though they're supposed to be. This is because the default mangler implements the shouldMangleDeclName() method that tells clang not to mangle them. This will be fixed in a later patch. llvm-svn: 105805
* Driver: Also mark -F as RenderJoined, the linker doesn't like "-F FOO" either.Daniel Dunbar2010-06-102-2/+2
| | | | llvm-svn: 105789
* tests: Update test for previous change.Daniel Dunbar2010-06-091-1/+1
| | | | llvm-svn: 105766
* Driver: Change Option parsing to always create arguments referring to unaliasedDaniel Dunbar2010-06-091-0/+11
| | | | | | | | options. - This matches the intent of the .td files, and will simplify alias handling. - PR7321. llvm-svn: 105763
* Commit my WIP on constexpr support. This commit: an XFAILed test and ↵Sebastian Redl2010-06-091-0/+78
| | | | | | treating constexpr as a top-level const. llvm-svn: 105752
* Revert "Driver: Change Option parsing to always create arguments referring toDaniel Dunbar2010-06-091-11/+0
| | | | | | unaliased", this isn't quite right yet. llvm-svn: 105747
* Driver: Change Option parsing to always create arguments referring to unaliasedDaniel Dunbar2010-06-091-0/+11
| | | | | | | | options. - This matches the intent of the .td files, and will simplify alias handling. - PR7321. llvm-svn: 105744
OpenPOWER on IntegriCloud