summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Convert getSizeInBytes() to getSizeInChars(), which returns its result inKen Dyck2011-03-181-9/+10
| | | | | | CharUnits. No change in functionality intended. llvm-svn: 127846
* Convert variables to CharUnits in ConvertStructToPacked(). No change inKen Dyck2011-03-181-12/+12
| | | | | | functionality intended. llvm-svn: 127844
* Driver/Obj-C: Be compatible with GCC behavior in that -fno-exceptions *does not*Daniel Dunbar2011-03-171-19/+10
| | | | | | disable Obj-C exceptions. llvm-svn: 127836
* Driver/Darwin: These are command line options, not target features.Daniel Dunbar2011-03-171-2/+2
| | | | llvm-svn: 127820
* Driver/Darwin: Suppress spurious warning about -force_cpusubtype_ALL.Daniel Dunbar2011-03-171-1/+2
| | | | llvm-svn: 127819
* Driver/Darwin/ARM: Kernel/kext code has more strict alignment requirements.Daniel Dunbar2011-03-172-5/+16
| | | | llvm-svn: 127815
* Fix PR9488: 'auto' type substitution can fail (for instance, if it creates a ↵Richard Smith2011-03-174-13/+24
| | | | | | | | reference-to-void type). Don't crash if it does. Also fix an issue where type source information for the resulting type was being lost. llvm-svn: 127811
* Remove code that was intentionally generating bad code on the GNU runtime ↵David Chisnall2011-03-171-1/+1
| | | | | | for no reason (failing to emit .cxx_constructor / .cxx_destructor methods). llvm-svn: 127806
* Don't construct two CFGs just to run -Wuninitialized. While this causes new ↵Ted Kremenek2011-03-171-18/+1
| | | | | | | | warnings to be flagged under -Wconditional-uninitialized, this is something we can improve over time. llvm-svn: 127802
* Teach VariadicMethodTypeChecker about pointers attributed as 'NSObject'.Ted Kremenek2011-03-171-0/+4
| | | | llvm-svn: 127798
* Teach VariadicMethodTypeChecker that CF references are valid arguments to ↵Ted Kremenek2011-03-171-0/+5
| | | | | | variadic Objective-C methods. llvm-svn: 127797
* Tweak RegionStore's handling of lazy compound values to use the 'Default' ↵Ted Kremenek2011-03-171-16/+30
| | | | | | | | versus 'Direct' binding key, thus allowing specific elements of an array/struct to be overwritten without invalidating the entire binding. Fixes PR 9455. llvm-svn: 127796
* Extend -Wuninitialized to support vector types.Ted Kremenek2011-03-171-3/+6
| | | | llvm-svn: 127794
* Convert NextOffsetInBytes to CharUnits and rename to NextOffsetInChars. NoKen Dyck2011-03-171-36/+40
| | | | | | change in functionality intended. llvm-svn: 127787
* Politely inform GCC that we will never fall off the end of that switch.Matt Beaumont-Gay2011-03-171-0/+1
| | | | llvm-svn: 127783
* Driver/ARM: Match GCC behavior in that -msoft-float disables NEON, despite thisDaniel Dunbar2011-03-171-0/+7
| | | | | | not being consistent at all with other parts of the GCC implementation. llvm-svn: 127777
* Use C as fallback type if in C preprocessor mode.Joerg Sonnenberger2011-03-161-4/+9
| | | | llvm-svn: 127769
* PR9494: Get rid of bitcast which was both unnecessary and written incorrectly.Eli Friedman2011-03-161-3/+2
| | | | llvm-svn: 127768
* Use ElaboratedType also for C.Abramo Bagnara2011-03-165-29/+54
| | | | llvm-svn: 127755
* Detect attempts to provide a specialization of a function within aDouglas Gregor2011-03-161-3/+9
| | | | | | dependent scope and produce an error (rather than crashing). Fixes PR8979. llvm-svn: 127749
* Having FileManager::getFile always open the file, brought much consternation ↵Argyrios Kyrtzidis2011-03-162-8/+14
| | | | | | | | | | | and leaking of file descriptors. Add 'openFile' bool to FileManager::getFile to specify whether we want to have the file opened or not, have it false by default, and enable it only in HeaderSearch.cpp where the open+fstat optimization matters. Fixes rdar://9139899. llvm-svn: 127748
* Clean up our handling of template-ids that resolve down to a singleDouglas Gregor2011-03-163-26/+24
| | | | | | | | | overload, so that we actually do the resolution for full expressions and emit more consistent, useful diagnostics. Also fixes an IRGen crasher, where Sema wouldn't diagnose a resolvable bound member function template-id used in a full-expression (<rdar://problem/9108698>). llvm-svn: 127747
* Fix duplicate argument processingSandeep Patel2011-03-161-1/+1
| | | | llvm-svn: 127746
* Support for printing/dumping static assertsPeter Collingbourne2011-03-162-0/+15
| | | | llvm-svn: 127744
* Add a 'RawPath' parameter to the PPCallbacks interface. This allowsChandler Carruth2011-03-166-36/+68
| | | | | | | | | | | | | | | clients to observe the exact path through which an #included file was located. This is very useful when trying to record and replay inclusion operations without it beind influenced by the aggressive caching done inside the FileManager to avoid redundant system calls and filesystem operations. The work to compute and return this is only done in the presence of callbacks, so it should have no effect on normal compilation. Patch by Manuel Klimek. llvm-svn: 127742
* Don't indescriminately print overload candidates when we have invalidDouglas Gregor2011-03-161-4/+0
| | | | | | | | | operands to a binary expression; it doesn't make sense in all contexts. The right answer would be to see if the user forgot at (). Fixes <rdar://problem/9136502>. llvm-svn: 127740
* Allow function calls to dereferenced member pointers ofDouglas Gregor2011-03-161-3/+0
| | | | | | pointer-to-function type. Fixes <rdar://problem/9065289>. llvm-svn: 127739
* Make sure that we always pop a function's scope *before* we callDouglas Gregor2011-03-165-17/+30
| | | | | | | | | | | ActOnFinishFunctionBody/ActOnBlockStmtExpr. This way, we ensure that we diagnose undefined labels before the jump-scope checker gets run, since the jump-scope checker requires (as its invariant) that all of the GotoStmts be wired up correctly. Fixes PR9495. llvm-svn: 127738
* When we're inserting a synthesized label declaration for aDouglas Gregor2011-03-162-23/+17
| | | | | | | | | | | | | | | | forward-looking "goto" statement, make sure to insert it *after* the last declaration in the identifier resolver's declaration chain that is either outside of the function/block/method's scope or that is declared in that function/block/method's specific scope. Previously, we could end up inserting the label ahead of declarations in inner scopes, confusing C++ name lookup. Fixes PR9491/<rdar://problem/9140426> and <rdar://problem/9135994>. Note that the crash-on-invalid PR9495 is *not* fixed. That's a separate issue. llvm-svn: 127737
* Fix foreign exception handling (GNU runtime).David Chisnall2011-03-161-6/+17
| | | | llvm-svn: 127736
* Added missing methods to get Designators source range.Abramo Bagnara2011-03-161-0/+8
| | | | llvm-svn: 127735
* Teach CFGBuilder that the 'default' branch of a switch statement is dead if ↵Ted Kremenek2011-03-161-2/+4
| | | | | | all enum values in a switch conditioned are handled. llvm-svn: 127727
* Don't emit read barriers for reading __weak __block variablesJohn McCall2011-03-161-4/+2
| | | | | | in non-GC mode. llvm-svn: 127725
* VariadicMethodTypeChecker: don't warn for null pointer constants passed to ↵Ted Kremenek2011-03-161-0/+5
| | | | | | variadic Objective-C methods. llvm-svn: 127719
* Remove warning for null characters in CFString literals. Clang handles them ↵Ted Kremenek2011-03-151-6/+0
| | | | | | | | just fine, and GCC 4.2 doesn't warn here either. We added this warning back in 2007 when we were comparing against GCC 4.0. llvm-svn: 127704
* Don't warn about null characters in Objective-C format string literals.Ted Kremenek2011-03-151-4/+6
| | | | llvm-svn: 127703
* Reorganize the emission of (unfoldable) constant casts a bit, andJohn McCall2011-03-151-36/+97
| | | | | | | make sure that upcasts of member pointer types are covered as constants. Fixed rdar://problem/9130221 llvm-svn: 127702
* Create __has_feature(cxx_noexcept) and mark it as working.Sebastian Redl2011-03-151-0/+1
| | | | | | | Find out that our C++0x status has only one field for noexcept expression and specification together, and that it was accidentally already marked as fully implemented. This completes noexcept specification work. llvm-svn: 127701
* More robust check for the special C++0x operator new workaround.Sebastian Redl2011-03-151-5/+5
| | | | llvm-svn: 127692
* Implement a hack to work around the changing exception specification of ↵Sebastian Redl2011-03-151-2/+38
| | | | | | operator new in C++0x. llvm-svn: 127688
* Remove bogus assertion in IdempotentOperationsChecker.Ted Kremenek2011-03-151-3/+2
| | | | llvm-svn: 127687
* Reintroduce r127617: "Code generation for noexcept." with fixes.Sebastian Redl2011-03-151-17/+25
| | | | llvm-svn: 127685
* Don't poke into redefined 'id' type looking for a propertyFariborz Jahanian2011-03-151-2/+3
| | | | | | | | declaration as this results in a confusing error message, instead of message related to missing property declaration. // rdar://9106929 llvm-svn: 127682
* Appease GCC. I'm surprised Clang accepted this.Ted Kremenek2011-03-151-10/+6
| | | | llvm-svn: 127672
* Split warnings from -Wuninitialized-experimental into "must-be-initialized" ↵Ted Kremenek2011-03-152-0/+5
| | | | | | and "may-be-initialized" warnings, each controlled by different flags. llvm-svn: 127669
* Split warnings from -Wuninitialized-experimental into "must-be-initialized" ↵Ted Kremenek2011-03-152-30/+62
| | | | | | and "may-be-initialized" warnings, each controlled by different flags. llvm-svn: 127666
* UninitializedValues: introduce ValueVector:reference class to forward to ↵Ted Kremenek2011-03-151-9/+26
| | | | | | llvm::BitVector. No real functionality change, but this is a stepping stone to moving to tri-state logic. llvm-svn: 127665
* UninitializedValues: wrap BitVector references in a new class ValueVector. ↵Ted Kremenek2011-03-151-5/+17
| | | | | | No functionality change. This defines the minimum interface that ValueVector needs to support when we no longer base it strictly on a direct interpretation of BitVector. llvm-svn: 127664
* Substitue term "BitVector" with "ValueVector" to prep for further revisions. ↵Ted Kremenek2011-03-151-44/+45
| | | | | | No functionality change. llvm-svn: 127663
* Rename UninitializedValuesV2 to UninitializedValues.Ted Kremenek2011-03-153-4/+4
| | | | llvm-svn: 127657
OpenPOWER on IntegriCloud