summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Allocate template parameter lists for out-of-line definitions via theDouglas Gregor2010-06-153-9/+20
| | | | | | ASTContext rather than via the normal heap. llvm-svn: 106008
* Implement -fvisibility-inlines-hidden. <rdar://problem/7819834>Douglas Gregor2010-06-154-0/+17
| | | | llvm-svn: 106003
* Driver/FreeBSD: Add libexec to program search paths, to workaround some buildDaniel Dunbar2010-06-151-0/+2
| | | | | | problem; patch by Ed Schouten. llvm-svn: 105996
* When analyzing for member self-assignment, don't attempt to dereference nullNick Lewycky2010-06-151-19/+21
| | | | | | | | Stmt* such as those which occur in ?: . Fixes PR7378. Also, generally whip the code into shape fixing several coding style violations. llvm-svn: 105992
* MinGW requires that wint_t be defined in stddef.h. In order to accomodate, weAlexis Hunt2010-06-151-0/+7
| | | | | | won't define it unless specifically requested via the use of __need_wint_t. llvm-svn: 105985
* Change AnalysisConsumer to analyze functions created by instantiantiating a ↵Ted Kremenek2010-06-151-2/+3
| | | | | | macro. Fixes PR 7361. llvm-svn: 105984
* fix the inline asm diagnostics to emit the error on the primary Chris Lattner2010-06-151-8/+17
| | | | | | | | | | | | | | | | | | | | | | source code location instead of on the note. Previously we generated: <inline asm>:1:2: error: unrecognized instruction barf ^ t.c:4:8: note: generated from here asm ("barf"); ^ Now we generate: t.c:4:8: error: unrecognized instruction asm ("barf"); ^ <inline asm>:1:2: note: instantated into assembly here barf ^ llvm-svn: 105978
* Make sure to set the visible on a vtable; VTTs and typeinfo alreadyDouglas Gregor2010-06-141-0/+3
| | | | | | 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/+12
| | | | | | | 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-141-2/+19
| | | | | | | 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-6/+19
| | | | llvm-svn: 105966
* Driver: Dissect -Wl, and -Xlinker arguments to remove --no-demangle, which was aDaniel Dunbar2010-06-141-3/+27
| | | | | | collect2 option that is passed by some projects (notably WebKit). llvm-svn: 105964
* Driver: Eliminate uses of Arg::getIndex.Daniel Dunbar2010-06-142-5/+7
| | | | | | Also, fix a memory leak. llvm-svn: 105963
* Driver: Fix refacto in DerivedArgList::MakeSeparateArg.Daniel Dunbar2010-06-141-25/+16
| | | | llvm-svn: 105958
* Driver: Add DerivedArgList::AddFOOArg helper functions, and switch to using ↵Daniel Dunbar2010-06-141-51/+45
| | | | | | them. llvm-svn: 105957
* Fix:Chris Lattner2010-06-142-2/+2
| | | | | | | | | | | | Decl.cpp:716:28: warning: initialization of pointer of type 'clang::VarDecl *' from literal 'false' [-Wbool-conversions] VarDecl *LastTentative = false; ^ RewriteRope.cpp:535:12: warning: initialization of pointer of type '<anonymous>::RopePieceBTreeNode *' from literal 'false' [-Wbool-conversions] return false; ^ llvm-svn: 105946
* An implementation of __builtin__fpclassify the way Chris Lattner described ↵Benjamin Kramer2010-06-141-0/+58
| | | | | | by Jörg Blank. llvm-svn: 105936
* Microsoft C++ Mangler:Charles Davis2010-06-141-1/+116
| | | | | | | | - Mangle qualifiers. - Start mangling variables' types into the name. A variable declared with a builtin type should now mangle properly. llvm-svn: 105931
* Add some missing shiftsNate Begeman2010-06-144-36/+178
| | | | | | | | Fix multiplies by scalar Add SemaChecking code for all immediates Add SemaChecking-gen support to arm_neon.td llvm-svn: 105930
* Do the same short-circuit optimization when laying out bases.Anders Carlsson2010-06-131-7/+18
| | | | llvm-svn: 105920
* Implement part of the EmptySubobjectMap optimization described in PR6998. We ↵Anders Carlsson2010-06-131-1/+16
| | | | | | still need to do this for bases. llvm-svn: 105919
* TemplateSpecializationType's isCurrentInstantiation bit can be derivedJohn McCall2010-06-133-20/+6
| | | | | | from its canonical type. llvm-svn: 105912
* Allow an asm label specifier on C++ methods, like GCC does.Chris Lattner2010-06-131-2/+11
| | | | | | Patch by David Majnemer! llvm-svn: 105909
* Most of NEON sema checking & fix to polynomial type detectionNate Begeman2010-06-132-17/+223
| | | | llvm-svn: 105908
* fix PR7360: -P mode turns off line markers, but not blank space.Chris Lattner2010-06-121-15/+10
| | | | | | | Apparently some programs which abuse the preprocessor depend on this. llvm-svn: 105889
* Added template parameters info for out-of-line definitions of class template ↵Abramo Bagnara2010-06-123-5/+62
| | | | | | methods. llvm-svn: 105882
* Microsoft C++ Mangler:Charles Davis2010-06-121-1/+110
| | | | | | | - Don't mangle static variables at global scope. - Add support for mangling builtin types. This will be used later. llvm-svn: 105881
* Don't omit class explicit instantiation from AST.Abramo Bagnara2010-06-122-51/+72
| | | | llvm-svn: 105880
* Shifts complete. Only vld & sema checking of constants remain.Nate Begeman2010-06-121-1/+29
| | | | llvm-svn: 105879
* vbsl, vrev* is implemented via arm_neon.hNate Begeman2010-06-122-6/+8
| | | | llvm-svn: 105875
* When deciding whether an expression has the boolean nature, don't look throughJohn McCall2010-06-122-4/+4
| | | | | | explicit casts. Fixes PR7359. llvm-svn: 105871
* Fix PCH issue. Attributes of a declaration were truncated to just one when ↵Argyrios Kyrtzidis2010-06-112-1/+12
| | | | | | the decl was read from a PCH file. llvm-svn: 105852
* Most of remaining builtins, 2 generics, vld, and rounding shfits remain.Nate Begeman2010-06-112-9/+115
| | | | llvm-svn: 105848
* Driver: Switch Compilation to return the translated arguments by default.Daniel Dunbar2010-06-111-1/+1
| | | | llvm-svn: 105844
* Driver: Add an explicit argument translation phase to the driver itself. We ↵Daniel Dunbar2010-06-115-31/+33
| | | | | | are going to need this to handle things like -Xassembler, -Xpreprocessor, and -Xlinker which we might have to introspect. llvm-svn: 105842
* Driver: Get rid of the proxy support in DerivedArgList.Daniel Dunbar2010-06-111-5/+6
| | | | llvm-svn: 105841
* Fix a couple comments.Daniel Dunbar2010-06-111-3/+1
| | | | llvm-svn: 105840
* Driver: Change OptTable::ParseArg to take any ArgList.Daniel Dunbar2010-06-112-11/+11
| | | | llvm-svn: 105839
* Driver: Fix arg_iterator typing to reflect that it is really an iterator ↵Daniel Dunbar2010-06-113-44/+47
| | | | | | over Arg*s. llvm-svn: 105838
* Preprocessor: Ignore unknown pragmas in -E -dM and -Eonly modes.Daniel Dunbar2010-06-113-0/+15
| | | | llvm-svn: 105830
* Fix the constant evaluator for AltiVec-style vector literals so that theJohn McCall2010-06-111-13/+34
| | | | | | | 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-1/+1
| | | | | | Troy Straszheim! llvm-svn: 105823
* Don't store ASTContext references in the TST nodes just to support profiling.John McCall2010-06-112-7/+9
| | | | llvm-svn: 105820
* 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-1/+3
| | | | | | to bool" in the sense of C++ [over.ics.rank]p4 bullet 1. I have decreed it. llvm-svn: 105817
* Fix the 64-bit build. operator<<(DiagnosticBuilder, long) doesn't exist, soJeffrey Yasskin2010-06-111-1/+1
| | | | | | | ptrdiff_t (long on 64-bit, apparently) is ambiguous between the int and unsigned int overloads. llvm-svn: 105816
* Add an option -fshow-overloads=best|all to limit the number of overloadJeffrey Yasskin2010-06-115-6/+38
| | | | | | | 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-112-1/+42
| | | | | | namespace, too. llvm-svn: 105809
* Small fixes regarding printf fix suggestions.Tom Care2010-06-111-0/+8
| | | | | | | | | | | | - 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-1/+197
| | | | | | | | | | | (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
OpenPOWER on IntegriCloud