summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Parse: Avoid crashing on unterminated top-level asm stringsJustin Bogner2013-12-102-6/+18
| | | | | | | | | | | When parsing invalid top-level asm statements, we were ignoring the return code of the SkipUntil we used for recovery. This led to crashes when we hit the end of file and tried to continue parsing anyway. This fixes the crash and adds a couple of tests for parsing related problems. llvm-svn: 196961
* Tiny cleanup, as suggested by David Blaikie.Richard Smith2013-12-101-2/+2
| | | | llvm-svn: 196959
* Rewrite docs/LeakSanitizer.rst. Add it to index.Sergey Matveev2013-12-102-11/+12
| | | | llvm-svn: 196957
* Rename attribute 'objc_suppress_protocol_methods' to ↵Ted Kremenek2013-12-106-105/+31
| | | | | | | | | | | | | | | 'objc_protocol_requires_explicit_implementation'. That's a mouthful, and not necessarily the final name. This also reflects a semantic change where this attribute is now on the protocol itself instead of a class. This attribute will require that a protocol, when adopted by a class, is explicitly implemented by the class itself (instead of walking the super class chain). Note that this attribute is not "done". This should be considered a WIP. llvm-svn: 196955
* Enhance attribute machinery to include ObjCProtocols as "subjects" in ↵Ted Kremenek2013-12-103-4/+8
| | | | | | attribute declarations. llvm-svn: 196954
* Add a triple to this IRgen test to unbreak the ARM bots.Richard Smith2013-12-101-1/+1
| | | | llvm-svn: 196953
* Improve on an objc_bridge_related diagnostic.Fariborz Jahanian2013-12-104-18/+19
| | | | | | // rdar://15499111 llvm-svn: 196950
* Make the -via-file-asm an InternalDebugOptDavid Peixotto2013-12-101-1/+1
| | | | | | | | We do not need to expose this flag to the user. This commit makes the flag an interal debug option that will only display its help when printing with --help-hidden. llvm-svn: 196946
* [Driver] Rename '-objcmt-white-list-dir-path' option to ↵Argyrios Kyrtzidis2013-12-103-3/+5
| | | | | | '-objcmt-whitelist-dir-path' and add an alias for now. llvm-svn: 196944
* [objcmt] Add a modernization option to infer and suggest designated ↵Argyrios Kyrtzidis2013-12-106-1/+155
| | | | | | | | initializers. rdar://15509284 llvm-svn: 196943
* [AST] In ObjCInterfaceDecl::isDesignatedInitializer(), use getMethod() ↵Argyrios Kyrtzidis2013-12-101-3/+1
| | | | | | | | instead of lookupMethod(). lookupMethod also goes through categories, which we don't need there. llvm-svn: 196942
* Update clang MS inline asm tests for r196939Reid Kleckner2013-12-102-8/+9
| | | | llvm-svn: 196940
* [analyzer] Misc. tidying in IdenticalExprChecker.Jordan Rose2013-12-101-18/+16
| | | | | | Some things I missed when this first went in. llvm-svn: 196938
* [analyzer] Extend IdenticalExprChecker to check ternary operator results.Jordan Rose2013-12-104-8/+269
| | | | | | | | | | Warn if both result expressions of a ternary operator (? :) are the same. Because only one of them will be executed, this warning will fire even if the expressions have side effects. Patch by Anders Rönnholm and Per Viberg! llvm-svn: 196937
* [AArch64] Refactor the redundant code in the EmitAArch64ScalarBuiltinExpr()Chad Rosier2013-12-101-206/+189
| | | | | | function. No functional change intended. llvm-svn: 196936
* Objective-C. Provide fixit's for objc_bride_relatedFariborz Jahanian2013-12-105-9/+64
| | | | | | | attributed CF to ObjC type conversions. // rdar://15499111 llvm-svn: 196935
* [AArch64] Refactor the Neon vector/scalar floating-point convert intrinsics soChad Rosier2013-12-101-12/+11
| | | | | | that they use float/double rather than the vector equivalents when appropriate. llvm-svn: 196931
* Remove IndentBlocks, which sneaked winto the previous commitAlexander Kornienko2013-12-102-7/+0
| | | | llvm-svn: 196929
* Early attempts to format in GNU style.Alexander Kornienko2013-12-103-36/+35
| | | | | | | | | | | | | | | | Summary: This still misses a few important features, so there's no mention of this style in the help message, but a few style rules are implemented. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2371 llvm-svn: 196928
* [AArch64] Refactor the Neon vector/scalar floating-point convert implementation.Chad Rosier2013-12-101-24/+24
| | | | | | Specifically, reuse the ARM intrinsics when possible. llvm-svn: 196927
* clang-format-diff.py: Support -regex filter and more filename extensionsAlp Toker2013-12-102-10/+12
| | | | | | | | | | | | | Add support for more filename extensions based on the list in the clang plus JavaScript. Also adds a -regex option so users can override defaults if they have unusual file extensions or want to format everything in the diff. Keeping with tradition the flag is modelled on Unix conventions, this time matching the semantics of find(1). llvm-svn: 196917
* [CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each ↵NAKAMURA Takumi2013-12-1019-114/+106
| | | | | | CMakeLists.txt. llvm-svn: 196916
* Add ObjCARCOpts to LINK_COMPONENTS.NAKAMURA Takumi2013-12-102-2/+3
| | | | llvm-svn: 196915
* Darwin: update clang test to new iOS default version (5.0)Tim Northover2013-12-101-4/+4
| | | | llvm-svn: 196913
* [mips][msa] Correct sld and sldi builtins.Daniel Sanders2013-12-102-18/+18
| | | | | | | | | | | | | Summary: The result register of these instructions is also the first operand. Reviewers: jacksprat, dsanders Reviewed By: dsanders Differential Revision: http://llvm-reviews.chandlerc.com/D2362 Differential Revision: http://llvm-reviews.chandlerc.com/D2363 llvm-svn: 196910
* Allow predefined styles to define different options for different languages.Alexander Kornienko2013-12-104-98/+188
| | | | | | | | | | | | | | | | | | | | | | | Summary: Allow predefined styles to define different options for different languages so that one can run: clang-format -style=google file1.cpp file2.js or use a single .clang-format file with "BasedOnStyle: Google" for both c++ and JS files. Added Google style for JavaScript with "BreakBeforeTernaryOperators" set to false. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2364 llvm-svn: 196909
* Trivial change: added 'using clang::format::FormatStyle;'Alexander Kornienko2013-12-101-68/+54
| | | | llvm-svn: 196903
* Support GNU style rule to put a space before opening parenthesis.Alexander Kornienko2013-12-105-22/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The rule from the GNU style states: "We find it easier to read a program when it has spaces before the open-parentheses and after the commas." http://www.gnu.org/prep/standards/standards.html#index-spaces-before-open_002dparen This patch makes clang-format adds an option to put spaces before almost all open parentheses, except the cases, where different behavior is dictated by the style rules or language syntax: * preprocessor: ** function-like macro definitions can't have a space between the macro name and the parenthesis; ** `#if defined(...)` can have a space, but it seems, that it's more frequently used without a space in GCC, for example; * never add spaces after unary operators; * adding spaces between two opening parentheses is controlled with the `SpacesInParentheses` option; * never add spaces between `[` and `(` (there's no option yet). Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2326 llvm-svn: 196901
* Regenerate DR status page.Richard Smith2013-12-101-1/+1
| | | | llvm-svn: 196893
* Implement DR1460: fix handling of default initializers in unions; don't allowRichard Smith2013-12-1012-67/+431
| | | | | | | | | more than one such initializer in a union, make mem-initializers override default initializers for other union members, handle anonymous unions with anonymous struct members better. Fix a couple of semi-related bugs exposed by the tests for same. llvm-svn: 196892
* [AArch64 NEON] Support poly128_t and implement relevant intrinsic.Kevin Qin2013-12-106-3/+287
| | | | llvm-svn: 196888
* Revert r196859, "Use llvm::sys::path::append to concatenate paths", to ↵NAKAMURA Takumi2013-12-101-2/+5
| | | | | | appease FileManager. llvm-svn: 196865
* [CMake] clang/lib: Prune redundant dependencies.NAKAMURA Takumi2013-12-1010-20/+0
| | | | llvm-svn: 196864
* Try to fix the test for Windows paths after r196859Dmitri Gribenko2013-12-101-3/+3
| | | | llvm-svn: 196862
* [ms-abi] 64-bit fixes for r196549Warren Hunt2013-12-103-14/+47
| | | | | | | | In order to address latent bugs that were easier to expose in 64-bit mode, we move the application of __declspec(align) to before the layout of vbases rather than after. llvm-svn: 196861
* Use llvm::sys::path::append to concatenate pathsDmitri Gribenko2013-12-101-5/+2
| | | | llvm-svn: 196859
* Take into consideration calling convention when processing specializations.Rafael Espindola2013-12-104-10/+47
| | | | | | This fixes pr18141. llvm-svn: 196855
* Fix via-file-asm test failure on windowsDavid Peixotto2013-12-101-6/+2
| | | | | | | | | | | | The windows target does not support using an external assembler so the test case was failing with this error: error: there is no external assembler that can be used on this platform The test was updated to always explicitly pass a target that has both an interal and external assembler. llvm-svn: 196854
* Sema: Enforce C++11 pointer-to-member template arguments should rulesDavid Majnemer2013-12-102-4/+9
| | | | | | | | | | | | The standard is pretty clear on what it allows inside of template arguments for non-type template parameters of pointer-to-member. They must be of the form &qualified-id and cannot come from sources like constexpr VarDecls or things of that nature. This fixes PR18192. llvm-svn: 196852
* Fix return of empty range in MSAsmStmt::childrenReid Kleckner2013-12-091-1/+1
| | | | llvm-svn: 196839
* [AArch64] Refactor the NEON scalar reduce pairwise intrinsics so that they useChad Rosier2013-12-091-6/+17
| | | | | | float/double rather than the vector equivalents when appropriate. llvm-svn: 196836
* [AArch64] Refactor the NEON scalar reduce pairwise front-end codegen to removeChad Rosier2013-12-091-11/+11
| | | | | | unnecessary patterns in tablegen. llvm-svn: 196835
* [AArch64] Remove q and non-q intrinsic definitions from the NEON scalar reduceChad Rosier2013-12-091-20/+10
| | | | | | pairwise implementation, using an overloaded definition instead. llvm-svn: 196834
* Objective-C: Improve on various diagnostics related toFariborz Jahanian2013-12-096-144/+123
| | | | | | use of objc_bridge_related attribute. // rdar://15499111 llvm-svn: 196828
* [CMake] clangSema doesn't depend on LLVM CodeGen any more.NAKAMURA Takumi2013-12-091-4/+1
| | | | llvm-svn: 196803
* [CMake] clang/lib: Satisfy dependencies to add *actually used* libraries on ↵NAKAMURA Takumi2013-12-0918-26/+114
| | | | | | | | target_link_libraries() and LLVM_LINK_COMPONENTS. I will prune redundant dependencies later. llvm-svn: 196800
* [CMake] clangDriver: Move LLVM stuff in target_link_library to ↵NAKAMURA Takumi2013-12-091-2/+6
| | | | | | LLVM_LINK_COMPONENTS. llvm-svn: 196798
* clang/test/lit.cfg: Remove get_llc_props. check-clang itself no longer ↵NAKAMURA Takumi2013-12-091-32/+0
| | | | | | | | invokes llc. Only a few tests depend on llc yet. llvm-svn: 196797
* Save another call to GetAddrOfFunction.Rafael Espindola2013-12-092-8/+10
| | | | | | | Thread an optional GV down to EmitGlobalFunctionDefinition so that it can avoid the lookup when we already know the corresponding llvm global value. llvm-svn: 196789
* When we decide to output a deferred decl, remember the llvm GlobalValue.Rafael Espindola2013-12-093-24/+37
| | | | | | | | | We can reuse it to avoid a DenseMap+StringMap lookup to find if it was already emitted or not. This fixes a 2010 TODO. llvm-svn: 196785
OpenPOWER on IntegriCloud