summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Remove dead store.Ted Kremenek2012-10-121-1/+1
| | | | llvm-svn: 165835
* Update for r165833.Chad Rosier2012-10-121-9/+5
| | | | llvm-svn: 165834
* Fix -ast-print for uses of operator->.Eli Friedman2012-10-122-0/+23
| | | | | | Patch by Grzegorz Jablonski. llvm-svn: 165832
* Fix warnings introduced by r165826.DeLesley Hutchins2012-10-121-0/+2
| | | | llvm-svn: 165829
* Thread-safety analysis: support multiple thread-safety attributes onDeLesley Hutchins2012-10-122-0/+108
| | | | | | declarations. llvm-svn: 165826
* [ms-inline asm] Remove a bunch of parsing code from the front-end, which will beChad Rosier2012-10-122-65/+3
| | | | | | reimplemented in the AsmParser where it belongs. llvm-svn: 165825
* Add missing header from 165821Douglas Gregor2012-10-121-0/+2
| | | | llvm-svn: 165822
* Sanitize the names of modules determined based on the names of headersDouglas Gregor2012-10-124-6/+79
| | | | | | | or directories, to make sure that they are identifiers that are not keywords in any dialect. Fixes <rdar://problem/12489495>. llvm-svn: 165821
* Remove XFAIL,fix testBill Schmidt2012-10-121-2/+1
| | | | llvm-svn: 165819
* XFAIL pending further investigationBill Schmidt2012-10-121-39/+24
| | | | llvm-svn: 165818
* Fix typo correction of one qualified name to another.David Blaikie2012-10-129-12/+77
| | | | | | | | | | | | | | When suggesting "foo::bar" as a correction for "fob::bar" we mistakenly replaced only "bar" with "foo::bar" producing "fob::foo::bar" which was broken. This corrects that replacement in as many places as I could find & provides test cases for all those cases I could find a test case for. There are a couple that don't seem to be reachable (one looks entirely dead, the other just doesn't seem to ever get called with a namespace to namespace change). Review by Richard Smith ( http://llvm-reviews.chandlerc.com/D57 ). llvm-svn: 165817
* This patch addresses PR13948.Bill Schmidt2012-10-122-7/+90
| | | | | | | | | | | | For 64-bit PowerPC SVR4, an aggregate containing only one floating-point field (float, double, or long double) must be passed in a register as though just that field were present. This patch addresses the issue during Clang code generation by specifying in the ABIArgInfo for the argument that the underlying type is passed directly in a register. The included test case verifies flat and nested structs for the three data types. llvm-svn: 165816
* Have scan-view guard against serving up pages outside the root directory.Ted Kremenek2012-10-121-0/+5
| | | | llvm-svn: 165815
* Change (!ptr != 0) to (!ptr) to make the code more readable.Richard Trieu2012-10-121-1/+1
| | | | | | No functional change. llvm-svn: 165811
* Handle a "#pragma options align" inside a class.Argyrios Kyrtzidis2012-10-122-0/+10
| | | | llvm-svn: 165810
* Add dump support for comments coming fromFariborz Jahanian2012-10-121-5/+10
| | | | | | | overridden symbols. OK'ed off-line by Doug. // rdar://12378793 llvm-svn: 165807
* c-index-test.c: /* Use C style comment. */NAKAMURA Takumi2012-10-121-1/+1
| | | | llvm-svn: 165797
* clang/test/Index/index-module.m: Tweak expressions to fit Win32 paths.NAKAMURA Takumi2012-10-121-30/+28
| | | | llvm-svn: 165794
* Remove unused variable.Benjamin Kramer2012-10-121-2/+0
| | | | llvm-svn: 165793
* [PCH] We only need to record C++ overridden methods once for the canonical decl.Argyrios Kyrtzidis2012-10-121-5/+10
| | | | llvm-svn: 165788
* Conditionally use an integral cast for BodyFarm support for ↵Ted Kremenek2012-10-121-6/+19
| | | | | | OSAtomicCompareAndSwap if the return type is not a boolean. llvm-svn: 165774
* Track which particular submodule #undef's a macro, so that the actualDouglas Gregor2012-10-1210-36/+117
| | | | | | #undef only occurs if that submodule is imported. llvm-svn: 165773
* Remove dead code introduced in r165751.Chad Rosier2012-10-121-6/+2
| | | | llvm-svn: 165772
* search for overridden methods with comment when overriding methodFariborz Jahanian2012-10-117-45/+35
| | | | | | | has none of its own. Factor in Doug's comments. // rdar://12378793 llvm-svn: 165771
* Remove pointless classof()'s.Sean Silva2012-10-1140-425/+0
| | | | | | | Updates to llvm/Support/Casting.h have rendered these classof()'s irrelevant. llvm-svn: 165770
* Add missing classof().Sean Silva2012-10-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Somewhat troublingly, without this implemented, the check inside isa_impl<> would silently use the parent's `classof()` when determining whether it was okay to downcast from the parent to the child! Bug analysis: A build failure after removing the parent's `classof()` initially alerted me to the bug, after which a little bit of thinking and reading of the code identified the root cause. The compiler could be made to prevent this bug from happening if there were a way to ensure that in the code template <typename To, typename From, typename Enabler = void> struct isa_impl { static inline bool doit(const From &Val) { return To::classof(&Val); } }; that `To::classof` is actually inside the class `To`, and not in a base class. I am not aware of a way to check this in C++. If there is a means to perform that check, please bring it up on the list and this will be fixed. There is a high likelihood that there are other instances of this same bug in the codebase. llvm-svn: 165769
* Provide a fixit when taking the address of an unqualified member function.David Blaikie2012-10-113-2/+23
| | | | | | | | | | | | | This only applies if the type has a name. (we could potentially do something crazy with decltype in C++11 to qualify members of unnamed types but that seems excessive) It might be nice to also suggest a fixit for "&this->i", "&foo->i", and "&foo.i" but those expressions produce 'bound' member functions that have a different AST representation & make error recovery a little trickier. Left as future work. llvm-svn: 165763
* clang/test/Index/index-module.m: Move XFAIL. It was line-number-sensitive.NAKAMURA Takumi2012-10-111-1/+2
| | | | llvm-svn: 165762
* clang/test/Index/index-module.m: Mark it as XFAIL:win32 for now.NAKAMURA Takumi2012-10-111-0/+1
| | | | llvm-svn: 165761
* clang/test/Index/index-pch-with-module.m: Tweak expressions for win32 pathsep.NAKAMURA Takumi2012-10-111-3/+3
| | | | llvm-svn: 165760
* [ms-inline asm] Remove a bunch of parsing code from the front-end, which will beChad Rosier2012-10-112-97/+4
| | | | | | reimplemented in the AsmParser where it belongs. llvm-svn: 165752
* [ms-inline asm] Lookup the IdentifierInfo using the Idents table and remove theChad Rosier2012-10-112-26/+1
| | | | | | | | | now unused static helper function. The test case needs to be remove temporarily until I can better filter memory operands that aren't actual variable reference. llvm-svn: 165751
* Diagnose the expansion of ambiguous macro definitions. This can happenDouglas Gregor2012-10-1110-16/+99
| | | | | | | only with modules, when two disjoint modules #define the same identifier to different token sequences. llvm-svn: 165746
* Remove OSAtomicChecker.Ted Kremenek2012-10-115-227/+5
| | | | llvm-svn: 165744
* Switch over to BodyFarm implementation of OSAtomicCompareAndSwap andTed Kremenek2012-10-112-13/+130
| | | | | | objc_atomicCompareAndSwap. llvm-svn: 165743
* Teach GetBaseType() about BlockPointerTypes.Ted Kremenek2012-10-111-0/+2
| | | | llvm-svn: 165742
* Add TargetTransformInfo to the clang driver.Nadav Rotem2012-10-111-1/+5
| | | | llvm-svn: 165741
* [libclang] Make sure the index_data.main_filename field is initializedArgyrios Kyrtzidis2012-10-112-0/+54
| | | | | | | in c-index-test. index_enteredMainFile is not invoked when indexing a module file. llvm-svn: 165735
* [libclang] Remove this test while I investigate why it is crashing on ↵Argyrios Kyrtzidis2012-10-111-52/+0
| | | | | | release+asserts. llvm-svn: 165734
* Add null check for malformed code.Ted Kremenek2012-10-111-2/+5
| | | | llvm-svn: 165733
* [libclang] Add tests for indexing modules and PCHs using modules.Argyrios Kyrtzidis2012-10-113-1/+84
| | | | llvm-svn: 165732
* Fix build failure from r165722Derek Schuff2012-10-111-1/+1
| | | | llvm-svn: 165731
* Introduce a simple "hint" scheme to eliminate the quadratic behaviorDouglas Gregor2012-10-114-11/+14
| | | | | | associated with deserializing macro history for an identifier. llvm-svn: 165729
* Make the deserialization of PendingMacroIDs deterministic.Douglas Gregor2012-10-112-17/+11
| | | | llvm-svn: 165727
* Add in the first iteration of support for llvm/clang/lldb to allow variable ↵Micah Villmow2012-10-111-1/+1
| | | | | | per address space pointer sizes to be optimized correctly. llvm-svn: 165726
* -Warc-repeated-use-of-weak: fix a use-of-uninitialized and add a test case.Jordan Rose2012-10-112-1/+13
| | | | | | Fix-up for r165718, should get the buildbots back online. llvm-svn: 165723
* Properly factor Native Client defines to support NaCl as an OSDerek Schuff2012-10-117-11/+238
| | | | | | with x86/ARM architecture llvm-svn: 165722
* Handle gnu_inline in c++ in a gcc compatible way. Original patch by TobiasRafael Espindola2012-10-112-1/+10
| | | | | | Grosser. llvm-svn: 165720
* -Warc-repeated-use-of-weak: Don't warn on a single read followed by writes.Jordan Rose2012-10-112-10/+101
| | | | | | | | | | This is a "safe" pattern, or at least one that cannot be helped by using a strong local variable. However, if the single read is within a loop, it should /always/ be treated as potentially dangerous. <rdar://problem/12437490> llvm-svn: 165719
* -Warc-repeated-use-of-weak: Check messages to property accessors as well.Jordan Rose2012-10-114-3/+76
| | | | | | | | | | | | | | | | | | | Previously, [foo weakProp] was not being treated the same as foo.weakProp. Now, for every explicit message send, we check if it's a property access, and if so, if the property is weak. Then for every assignment of a message, we have to do the same thing again. This is a potentially expensive increase because determining whether a method is a property accessor requires searching through the methods it overrides. However, without it -Warc-repeated-use-of-weak will miss cases from people who prefer not to use dot syntax. If this turns out to be too expensive, we can try caching the result somewhere, or even lose precision by not checking superclass methods. The warning is off-by-default, though. <rdar://problem/12407765> llvm-svn: 165718
OpenPOWER on IntegriCloud