summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Move 'include/Checkers/PathSensitive/Checkers' directory to 'include/Checkers'.Ted Kremenek2010-01-263-2/+2
| | | | llvm-svn: 94608
* Patch to add 'volatile' to first argument of allFariborz Jahanian2010-01-262-10/+14
| | | | | | | | sync compare_and_swap to match them with gcc. It also fixes a few incorrect argument defitions. (fixes radar 7540291). llvm-svn: 94607
* Refine the non-virtual this adjustments for thunks by using the offsetMike Stump2010-01-261-0/+6
| | | | | | to the declaring class from the nearest virtual base class. WIP. llvm-svn: 94606
* Bring some semblance of order into Decl.h and Decl.cpp. While at it, fix ↵Sebastian Redl2010-01-262-342/+352
| | | | | | some typo comments and remove an unused and unimplemented function prototype. No functionality change. llvm-svn: 94599
* Refine the non-virtual this adjustments for thunks by using the offsetMike Stump2010-01-262-9/+26
| | | | | | | | to the declaring class from the nearest virtual base class. WIP. This fixes 40% of all the problems remaining in one of my testcases. llvm-svn: 94592
* Added assert to the rewrite.Fariborz Jahanian2010-01-261-0/+1
| | | | llvm-svn: 94584
* Convert one last size variable to CharUnits (follow-on to 94577).Ken Dyck2010-01-261-2/+3
| | | | llvm-svn: 94579
* Use CharUnits for sizes, offsets, alignments, and padding amounts for valuesKen Dyck2010-01-261-35/+39
| | | | | | that are in character units. llvm-svn: 94577
* Fix typo in commentDouglas Gregor2010-01-261-1/+1
| | | | llvm-svn: 94576
* Implement 'clang_getInclusions()' in CIndex. This API allows clients to ↵Ted Kremenek2010-01-269-1/+151
| | | | | | walk the set of files included in a translation unit via the C API. llvm-svn: 94575
* Eliminate clang_getInstantiationLocationOffset(), and instead add anDouglas Gregor2010-01-264-71/+33
| | | | | | offset parameter to clang_getInstantiationLocation(). llvm-svn: 94573
* Use CharUnits for alignments in character units.Ken Dyck2010-01-263-14/+17
| | | | llvm-svn: 94571
* Fix two redefinitions in test cases that weren't diagnosed yet, but will be ↵Sebastian Redl2010-01-262-2/+2
| | | | | | soon. llvm-svn: 94565
* Use CharUnits for alignment of UTF16 string in GetAddrOfConstantCFString().Ken Dyck2010-01-261-2/+2
| | | | llvm-svn: 94564
* Use CharUnits for alignment in EmitNullInitializationLValue().Ken Dyck2010-01-261-2/+2
| | | | llvm-svn: 94563
* Implement clang_annotateTokens(), which associates cursors with eachDouglas Gregor2010-01-264-21/+110
| | | | | | | of the tokens within a raw token stream. This does not even attempt to handle macros yet. llvm-svn: 94561
* Refix rewriting of an ivar access when it isFariborz Jahanian2010-01-262-15/+2
| | | | | | type-cast to its sub-class (radar 7575882). llvm-svn: 94559
* Add 'PostVisitTU' callback hook to 'perform_test_load()' to allow a special ↵Ted Kremenek2010-01-261-9/+21
| | | | | | callback after the translation unit has been loaded (and streamed). llvm-svn: 94557
* Allow the 'visitor' argument to 'perform_test_load()' to be NULL. TheTed Kremenek2010-01-261-18/+22
| | | | | | | utility of this change will be made clearer in a subsequent patch when perform_test_load()' does more than stream the AST. llvm-svn: 94556
* Use the right definition when emitting a global variable. Fixes PR5564.Anders Carlsson2010-01-263-3/+20
| | | | llvm-svn: 94555
* Change getUnique to return a GlobalDecl. Fixes PR6147.Anders Carlsson2010-01-261-8/+20
| | | | llvm-svn: 94554
* Correct cut-and-paste error in doxygen comment for newly introducedKen Dyck2010-01-262-2/+2
| | | | | | getTypeAlignInChars(). llvm-svn: 94553
* Add getTypeAlignInChars() for use in code that works in alignments in characterKen Dyck2010-01-262-0/+14
| | | | | | units. llvm-svn: 94552
* Introduce a CIndex API for lexing the raw tokens within a given sourceDouglas Gregor2010-01-268-32/+540
| | | | | | range. The token-annotation function does nothing, yet. llvm-svn: 94551
* Replace inheritance of RegionRawOffset from std::pair with two private memberKen Dyck2010-01-261-4/+7
| | | | | | variables to improve readability and encapsulation. llvm-svn: 94550
* Introduce CodeGenModule::GetTargetTypeStoreSize() to calculate the store sizeKen Dyck2010-01-264-7/+16
| | | | | | of LLVM types in character units. llvm-svn: 94542
* Avoid some unnecessary copying of unresolved lookup results.John McCall2010-01-262-16/+18
| | | | llvm-svn: 94531
* Handle redeclarations found by ADL deterministically and reasonably.John McCall2010-01-265-16/+105
| | | | | | | | | This solution relies on an O(n) scan of redeclarations, which means it might scale poorly in crazy cases with tons of redeclarations brought in by a ton of distinct associated namespaces. I believe that avoiding this is not worth the common-case cost. llvm-svn: 94530
* Correctly treat 64 bit integers specified via the mode attribute as the 'long'Chandler Carruth2010-01-262-3/+46
| | | | | | | | | | type when that type is 64 bits wide, and the 'long long' type when 'long' is only 32 bits wide. This fixes PR6108. Also adds a bunch of test cases to ensure proper conversion between equally sized standard types and mode-specified types on both 32 and 64 bit targets. llvm-svn: 94527
* If a global variable has an initializer with side effects, it can never be ↵Anders Carlsson2010-01-262-3/+18
| | | | | | deferred (even if it's in an anonymous namespace). llvm-svn: 94525
* Allow ADL to find functions imported by using decls. Leave wordy commentJohn McCall2010-01-263-12/+38
| | | | | | about interaction between ADL and default arguments. Shrug shoulders, commit. llvm-svn: 94524
* Remove a few more references to index-test; this was killed in r94210.Chandler Carruth2010-01-261-3/+3
| | | | llvm-svn: 94522
* Fix another debug info crash with virtual bases.Anders Carlsson2010-01-262-5/+21
| | | | llvm-svn: 94520
* Fix the test I broke, and also fix a crash when declaring a virtual ↵Anders Carlsson2010-01-264-28/+43
| | | | | | destructor. Add debug info support for pure virtual member functions. llvm-svn: 94519
* Factor creating the DISubprogram for a member function out into a separate ↵Anders Carlsson2010-01-262-51/+68
| | | | | | function. llvm-svn: 94513
* Simplify CGDebugInfo::CollectCXXMemberFunctions a little. More to come.Anders Carlsson2010-01-261-6/+6
| | | | llvm-svn: 94511
* Make sure to always mark a global variable as not being constant if it has a ↵Anders Carlsson2010-01-262-1/+13
| | | | | | C++ initializer. llvm-svn: 94504
* Simplify.Daniel Dunbar2010-01-262-24/+5
| | | | llvm-svn: 94503
* Be sure to track the non-virtual part of the vcall offset in complexMike Stump2010-01-262-4/+7
| | | | | | | | | multiple inheritance cases. WIP. This fixes 20% of the outstanding problems found by the randomized tester. llvm-svn: 94499
* Preserve access bits through overload resolution much better. SomeJohn McCall2010-01-267-103/+90
| | | | | | general refactoring in operator resolution. llvm-svn: 94498
* Introduce clang_getInstantiationLocationOffset(), which decomposes aDouglas Gregor2010-01-263-14/+61
| | | | | | source location in file + offset. llvm-svn: 94497
* Driver/Darwin: Honor IPHONEOS_DEPLOYMENT_TARGET.Daniel Dunbar2010-01-264-17/+56
| | | | llvm-svn: 94488
* Driver/Darwin: Stuff iPhoneOS into environment portion of the (llvm/clang) ↵Daniel Dunbar2010-01-263-74/+73
| | | | | | triple instead of keying off architecture. Also, fix version define to properly include the revision/micro component of the version number. llvm-svn: 94487
* Pass access specifiers around in overload resolution.John McCall2010-01-267-54/+107
| | | | llvm-svn: 94485
* Fix a regression caused by my rewriting of cast of ivarFariborz Jahanian2010-01-262-9/+17
| | | | | | access (was radar 7575882). llvm-svn: 94481
* Fixup a missing vcall entry. WIP.Mike Stump2010-01-262-37/+282
| | | | llvm-svn: 94478
* First cut at emitting inheritance info.Devang Patel2010-01-252-1/+43
| | | | llvm-svn: 94473
* Emit debug info for virtual functions.Devang Patel2010-01-251-2/+12
| | | | llvm-svn: 94467
* Fixit to remove 'volatile' in file-scope 'asm volatile'.John McCall2010-01-251-1/+6
| | | | llvm-svn: 94466
* Driver: Fix fallback to gcc to -c instead of -S if trying to generate an LLVM bcDaniel Dunbar2010-01-252-13/+28
| | | | | | file. llvm-svn: 94463
OpenPOWER on IntegriCloud